Predict bounce

BlitzMax Forums/BlitzMax Programming/Predict bounce

I want to find the best way to predict the coordinates of where a ball will bounce.

The ball is affected by its x,y,z velocities, gravity and air friction.

xvel:-friction
yvel:-friction
zvel:-gravity

x:+xvel
y:+yvel
z:+zvel

Is there a way to determine what the x and y position will be when z next hits zero?

Obviously I could run a loop which simply plays out the motion of the ball until z hits zero, but this wastes time. I'd rather calculate the co-ords.