Walking through walls

On CoSpaces Edu :: Video Game Project, Spring 2023 Scene 3, we cannot get the camera to walk through a wall (although it did work at one point). How can we get the camera to move through some walls and not others? Thanks!

2 Likes

Hi @Kelly_Nickell!

You can use typescript to achieve going through solid objects. Use the function “Camera.addToCollisionFilter” to make the item be able to have the camera pass through.
image
You can get the item ID by going into the code section and copying the Scene.getItem, like this;
image

here is an example of this code.

This project is remixable, feel free to play around with the code!

I hope this helped!

1 Like