This project has moved and is read-only. For the latest updates, please go here.

Restitution issue

Topics: Developer Forum
Mar 26, 2013 at 9:56 AM

I'm working on a game where a ball bounce on oriented mirrors.
So I set the restitution to 1.0f on the ball to keep its velocity after the collisions.

But I'm having a problem where when the ball hits a mirror with a small angle between ball's direction and mirror's orientation : the ball "slides" on the mirror instead of bouncing on it.


Is there something to do in order to avoid that ? It is really important in the gameplay of the game that the ball bounces correctly everytime.

Mar 26, 2013 at 3:02 PM
Did you try setting the restitution on the mirror as well? Also, try increasing the friction between the mirror and ball.

Hope that helps,
Mar 27, 2013 at 2:04 PM
Thanks for the idea, I set the friction on the ball and on the mirror to 0.0f.
I'm gonna try that when I'm back from work, and tell you if it fixes the problem.