i was search for the best way to do jump with character controller and use my own Gravite first i used this one _velocity.y += Mathf.Sqrt(JumpHeight * -2f * Gravity);
to jump and this _velocity.y += Gravity * Time.deltaTime;
to accept the gravity here is -9.81f
and this way was the secondmoveDirection.y = Mathf.Sqrt(-2.0f * Physics.gravity.y * jumpSpeed);
and to apply Gravity moveDirection.y -= gravity * Time.deltaTime;
and here public float jumpSpeed = 8.0F;
public float gravity = 20.0F;
so what you think is there another way to do jump or better wich is the best