Jump physics equation?

Hey all, just have a question for anybody that’s good with physics! I’m developing a simple Run+Jump over obstacles game (for android), and I just was wondering if anybody knew a good equation for jumping. (I’ve got the animated sprite all ready). I just need it so when I press the spacebar, the sprite will jump. Just as an added note, the sprite is animated running, so I don’t need an equation where you can move to either side, it just needs to be Up+Down, because with the animation, it will look like it is moving already. Thanks for the help! :slight_smile:

–Liimbix 

Hi @Liimbix,

If your character is basically staying in place vertically (as the world moves behind it), then you can probably just apply a force directly upward, and it will appear as if the character is jumping in an arc.

In regards to jumping, you may want to check out the following tutorial. It discusses how to handle jumping when the character is only on the ground, and it prevents in-air jumps (unless you want that behavior :slight_smile: )

http://coronalabs.com/blog/2013/02/19/more-physics-tricks-explained/

Best regards,

Brent

Hi @Liimbix,

If your character is basically staying in place vertically (as the world moves behind it), then you can probably just apply a force directly upward, and it will appear as if the character is jumping in an arc.

In regards to jumping, you may want to check out the following tutorial. It discusses how to handle jumping when the character is only on the ground, and it prevents in-air jumps (unless you want that behavior :slight_smile: )

http://coronalabs.com/blog/2013/02/19/more-physics-tricks-explained/

Best regards,

Brent