Hi, I'm new to Bullet and have quickly gotten some basic box and sphere collision simulations paired working with my own graphics framework. Now, I'm going to mainly work on ball physics for my next game and have noticed something odd here.
I replaced the dynamic rigid body from a box to a sphere and it collides, bounces, and when it reaches the peak of its bounce, it stays in place in mid-air! I've set the restitution of the floor to 0.99 and the ball to 0.5. Then I did a few tests with the floor tilted along one axis. Surprisingly to me, the ball does keep bouncing if I tilt the floor far enough. At an angle of 0.2 and 0.1 radians, it eventually returns to the surface. At 0.05 radians, the ball doesn't fall back down after its first bounce. Maybe there's another variable that I'm missing that I should set. Friction, perhaps?
Ball frozen in place after first bounce
-
JustChris
- Posts: 4
- Joined: Fri Jan 22, 2010 6:36 pm
Re: Ball frozen in place after first bounce
I realized that my gravity was set too low. I thought scaling it down a bit to reflect the scale of my scenes would be good but looks like I'll just have to use normal gravity and adjust the timesteps.