# Precise bouncing on walls?

Can someone teach me how to set up a object that simple moves foward and baunces in reflection whenever it hit a wall. much like a bilhar ball or the green shells from Mario Kart. I tried using softbody physics with elasticity but it is too buggy especially in fast moving objects, I need precise mirror reflected baunces.

Maybe with a script that captures the normal of the wall and the angle of the object. It's much like a specular vector in the pic, but instead of the light I need to make this with the object's tragetory. Unfortunately I don't know programming. Help?

• You mean a rigid body simulation? – JakeD May 2 '17 at 22:27
• no, your link is not related with my question, I told, using the physics simulation is buggy for making objects baunce precisely specially in high speeds. and it's heavy too. what I need is a Ray vector to calculate the rotation to apply based in the angle of the colision with the wall. – Hicky8 May 3 '17 at 0:59
• Softbodies and rigidbodies are two different things. If you are instead trying to build your own physics engine, you will need a strong programming background... – JakeD May 3 '17 at 2:17
• Both soft And rigid body doenst offer me a solution for this, like i said its imprecise for what a am triyng to do. The most simple solution thar ive came out is simple rotating The objetc when it hit The wall, ive done a logic setup thase reproduces fake baunces, rotating the object to opposite side of the wall, that works fine, way better than using the dynamic physics. the thing is: it is possible to get the wall normal from a Ray sensor on front of the object to calculate how many rotation to apply. it's simple I am not building a whole new physics engine. – Hicky8 May 3 '17 at 3:33
• How precise do you need? If you use rigid body and just enable the elasticity coefficient, you get pretty accurate results. (Soft body is just terrible though). – sdfgeoff May 3 '17 at 10:27