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:
- Give the item you want to ignore collisions on a unique name, for example
fakeWall
- 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
1 Like
That works, thank you
1 Like
Great, glad to be of help