Jump Speed

Hi i have a jumping script which works fine, however the character feels more like jumping on the moon :slight_smile: I want to add a Jumpspeed to increase the speed when the character jumps up and a gravity force to choose how fast the character falls to the ground.

my current script is:

static var PlayerState : int;

static var ButtonJump = false;

function Update () {

// jumping controls

if(Input.GetButtonDown(“Fire1”))

ButtonJump = true;

if(ButtonJump == true && (grounded == true)){

	rigidbody.velocity = Vector3(0,jumpHeight,0);

// (playerSpeed * Input.GetAxis(“Horizontal”)) * Time.deltaTime;

	grounded = false;

	ButtonJump = false;

}

If you use the fps controller it already has a jump script attached to it as well as movement speed and so on, but there is an option called gravity that you can change which is exactly what you want.