Jump to content
Oliver Hope

equation for player jump

Recommended Posts

Hey all
does the player jump in a parabola? How could i get the equation for the jump of a player? without using a timer spitting out the player pos and then plotting it

thanks

Share this post


Link to post
Share on other sites

The player does jump like a parabola.

iirc from my experiments the characters Y velocity is -1 per 0.1 seconds. So most likely -10m/s^2 (Kudos to them if its actually -9.81m/s^2)

Edited by Igor Q.

Share this post


Link to post
Share on other sites

Assuming its a standard motion equation...

Image144.gif

You can use this equation to solve the initial velocity and other such things...

 

Edited by Igor Q.
  • Thanks 1

Share this post


Link to post
Share on other sites
player.Motion.Velocity += Vector3.up * Mathf.Sqrt(2 * jumpHeight * kGravity);

at the moment we have gravity constant equal to 15m/s^2

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×