Archived

This topic is now archived and is closed to further replies.

DevLiquidKnight

Jumping and mathmatical equation for an object dropping.

Recommended Posts

Well, I hope you understand a little tiny bit about physics...

for objects dropping, just incorperate newtonian physics. Start with the known velocity of the object (which is a vector, should be zero if it is just dropped), and using gravity as the acceleration (-9.8 m/s), your equation would be:

relative_distance=initial_position+(initial_velocity*time) +
1/2*(acceleration*time^2)

Since you are dealing with individual frames in fractions of a second, you must adjust the time according to the elapsed time for each frame.

With an object jumping, just use the same equation, and set the initial velocity to whatever your choosing, to represent the power of the jump. Set the intial position to the surface level.

Share this post


Link to post
Share on other sites
Well, I hope you understand a little tiny bit about physics...

for objects dropping, just incorperate newtonian physics. Start with the known velocity of the object (which is a vector, should be zero if it is just dropped), and using gravity as the acceleration (-9.8 m/s), your equation would be:

relative_distance=initial_position+(initial_velocity*time) +
1/2*(acceleration*time^2)

Since you are dealing with individual frames in fractions of a second, you must adjust the time according to the elapsed time for each frame.

With an object jumping, just use the same equation, and set the initial velocity to whatever your choosing, to represent the power of the jump. Set the intial position to the surface level.

Share this post


Link to post
Share on other sites