Hi i have a jumping script which works fine, however the character feels more like jumping on the moon
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;
}