Good afternoon,
I have tried several scrips and codes found on the forum/Google and in here.
But none of the found codes seem to work for me.
I have a character controller + rigid-body attached, and a movement script.
In my void Update i check to see if the player pressed the space, then i set the flag for my animator to play the jump animation, and i add force to the rigid-body.
But the player just stops his running/sneaking/walking animation and movement, and than jumps straight upward (and stops slightly above ground again).
Then he continues his movement (stepping down to the ground first).
if (Input.GetKeyDown (KeyCode.Space) && move > 0.1) {
anim.SetTrigger (jumpHash);
rigidbody.AddForce(Vector3.forward * jumpForce);
}
But it seems to have no effect… any suggestions ?