Moving through specific objects/walls?

Is there any way to only move through specific objects/walls? I don’t want to walk through every wall, i just want one wall that i can walk through. Is that possible? And if so, how do i do that?

Hi @florebla,

You can make the camera ignore collisions against specific items by using our scripting API if you’re using a CoSpaces Edu PRO license plan. Here’s how it’s done:

  1. Give the item you want to ignore collisions on a unique name, for example fakeWall
  2. Add the following code to your scene:
const fakeWall = Scene.getItem("fakeWall") as Cuboid
Camera.addToCollisionFilter(fakeWall)

This code will cause the Camera to ignore collisions against the item with the name fakeWall.


Here’s a remixable example space to see it all in action:

Hope this helps :slight_smile:

1 Like

That works, thank you :slight_smile:

1 Like

Great, glad to be of help :slight_smile: