Bouncing angles

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
BabaJustin
Posts: 30
Joined: Mon Apr 25, 2011 6:07 pm

Bouncing angles

Post by BabaJustin »

We are currently having an "issue" where the angles at which our object is bouncing off of walls is not ideal. The current result looks similar to this:
bouncy.png
bouncy.png (7.45 KiB) Viewed 3460 times
The desired result is something more like this, where the angle of reflection isn't so different from the angle of incidence.
bouncy-2.png
bouncy-2.png (7.95 KiB) Viewed 3460 times
Is it possible to tune the physics to achieve this?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Bouncing angles

Post by Norbo »

It could just be friction. It will reduce tangential motion energy on impact. Additionally, as a side effect, linear velocity will be transformed into angular velocity, so subsequent hits will be less 'ideal,' though still physically correct.

Turning the friction down to zero for such impacts would be a good test.
BabaJustin
Posts: 30
Joined: Mon Apr 25, 2011 6:07 pm

Re: Bouncing angles

Post by BabaJustin »

That did the trick, it was indeed a result of the friction.
Post Reply