how to make a jump ?

i dont have idea, sorry about how to make a jump with rigibody

depending on the key, you want to press to make the character jump, you can use this if spacebar

public float jumpforce;

void Update()
{
   if (Input.GetKeyDown(KeyCode.Space) && checkGrounded())
   {
   gameObject.GetComponent<Rigidbody>().AddForce(Vector3.up * jumpforce,     ForceMode.Impulse);
   }
}

public bool checkGrounded()
{
return Physics.Raycast(transform.position, -Vector3.up, dist + 0.1f);
}

This will make your player jump, and check if it’s grounded, so it only jumps once :slight_smile:

thanks so much