Collision doesn't lead to scene change

Here is the scene from my student’s CoSpace. In the library scene, the code calls for the switch to another scene when the camera collides with the ‘monster’. It is not working. When the collision occurs, all that happens is the monster pushes the camera around.

Please help!

1 Like

Hi @TechWarriors, this is due to the ‘monster’ being a group object; On collision events only work with objects directly, a way to make this work is to add a ‘bounding box’, a cube resized to match the monsters dimensions, made invisible and adding all of the objects that were originally in the group as children of this box. That way the code works again, I’ve adjusted it here;

2 Likes

I can’t thank you enough Luc! It works!!!

Tech Warriors

1 Like