Jump to content
  • Advertisement

Archived

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

DevLiquidKnight

Jumping and mathmatical equation for an object dropping.

This topic is 5808 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!