Elastic Bounce

Please don't post Bullet support questions here, use the above forums instead.
Tjommi
Posts: 1
Joined: Sat Nov 20, 2010 1:11 pm

Elastic Bounce

Post by Tjommi »

Hi, Im rather new to Bullet and im trying to get familiar with it.

Currently im trying to make a "Breakout" game and want to let Bullet deal with the ball bounces. When the game starts i give the ball a push by using "applyForce". Ive also reduced the ball's friction to 0. However what i want to do now is that whenever the ball hits a wall i want the bounce to be elastic letting the ball keeping the total speed only changing the angle of it. However it seems like whenever the ball hits a wall it looses a huge amount of speed.

I tried to sett the Restitution of the walls and the ball to 1 but it seems that the ball just keeps getting momentum whenever it hits something.

any suggestions?