need to bounce off the wall

Hello All,

Trying to figure out how to make an object bounce as soon as it hits a wall or other objects. I think it has something to do with colliders but some how I can’t figure it out. :frowning:

Thanks,
Ray

Small example - Create a sphere: GameObject->Create Other → Sphere

In order to do bouncing, the object needs to be under physics control: Component->Dynamics->RigidBody

Now the sphere will fall down. Create a box and move it somewhere below the sphere so the sphere hits it. It will now fall to rest. In order for it to bounce, you need to set the Material of the sphere’s collider. Click the downarrow next to it in the inspector, and select Bouncy.

Done!

Thank you

That was easy