Help with Gravity/Bounce Code...

Blitz3D Forums/Blitz3D Programming/Help with Gravity/Bounce Code...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You consider the ball has collided if the y-position is below 0 right?
Now, what will happen if the ball is still below 0 in the next frame?
When you detect the collision, try positioning the ball at 0 or a little bit above, like 0.001 or something, and see if that helps.

[Edit] To "visualize" the problem, add a CollisionCount variable that you increase by one at every collision and print it on screen.