Objects Moving in a Scene

I am making a shooting game, and I want different targets to move inside the scene.

I have spheres as targets moving inside the scene, but I want to add a few cubes to the scene.

But I can’t find a way to make a cube move and bounce when it collides with an obstacle such as a wall.

To do it via physics, set both the cube and the wall as physical objects using a RigidBodyControl (the wall should not have mass), then give both the cube and the wall positive Restitution.

You may want to give the box a SphereCollisionShape, since a cube will naturally resist rolling.

1 Like