Two *simple* questions in one complicated thread!

Blitz3D Forums/Blitz3D Beginners Area/Two *simple* questions in one complicated thread!

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.

It's called inertia. When an object is moving in a certain direction at a certain speed it will continue to do so until other forces are applied.

When the ball is rolling up the ramp at its current speed gravity continously pulls it down and the ramp surface pushes it away.

When the ball leaves the ramp say at 5 metres per second west and 2 metres per second up the force of the ramp stops having any impact and the force of gravity continues, increasing the balls vertical speed downwards at the rate of 10 meters per second per second, so the balls speed changes from upwards to downwards over time and its position describes an arc.

It's not that simple as it took a guy called Newton in the 1700's to figure out the basic laws of motion.

The trick programattically is to have variables both for the balls position and it's speed for each axis of direction (x,y and z), add the speed to the position every frame and then apply the forces as described to the balls speed variables.