As shown here, Paper Mario's jump takes 8 frames go reach the max jump height and 12 frames to get back to the ground. This is pretty unusual, any idea how to jump up that quick with a rigidbody?
I tried to AddForce
when rigidbody.velocity.y > 0
, but that didn't work out.
Any help would be appreciated, thanks in advance!
//Jump when pressing button and on ground
//jumpForce is a public float variable
if (Input.GetButtonDown("Jump") && isGrounded)
{
theRB.velocity += new Vector3(0, jumpForce, 0);
}