# AddForce moves my char to fast up

Hey,

I’m creating a 2D game. I have done my charController, but I ran into a problem.

For my jump funktion I am using AddForce. When I am jumping, my char jumps to fast up. I know that I can setup how fast the char comes down with the gravity.

But how I can manage, how fast he moves up ?

My code I am using:

``````public class movement : MonoBehaviour
{
// Key setup
public KeyCode moveLeft;
public KeyCode moveRight;
public KeyCode jump;

// Animator setup
public Animator animator;

// Walkspeed setup
//public int walkSpeed;

// Groundcheck Setup
public float jumpHeight = 11000;

bool onGround = false;
public Transform groundCheck;
float groundRadius = 0.1f;

// Use this for initialization
void Start()
{

animator = this.GetComponent<Animator>();

}
void FixedUpdate()
{

print(onGround);
if (Input.GetKey(moveLeft))
{
transform.Translate(new Vector3(-0.03f, 0));
animator.SetInteger("Moving", 1);
animator.SetInteger("Direction", 0);
}
else if (Input.GetKey(moveRight))
{
transform.Translate(new Vector3(0.03f, 0));
animator.SetInteger("Moving", 1);
animator.SetInteger("Direction", 1);
}
else
{
animator.SetInteger("Moving", 0);
}
if (Input.GetKeyDown(jump) && onGround == true)
{
onGround = false;

}
onGround = Physics2D.OverlapCircle(groundCheck.position, groundRadius, whatIsGround);
if (onGround == false)
{
animator.SetInteger("Jumping", 1);
}
else
{
animator.SetInteger("Jumping", 0);
}
}
}
``````

Regards,

LifeArtist

I fixed it by deactivating : Apply root motion