Quantcast
Channel: Answers for "Jumping Stopped Working."
Viewing all articles
Browse latest Browse all 4

Answer by Gurc

0
0
You assign a new vector to movedirection, overwrite jump decision moveDirection = Vector3(0, 0,Input.GetAxis("Vertical")); it should be moveDirection += Vector3(0, 0,Input.GetAxis("Vertical")); Edit: You should check is your character is grounded. http://docs.unity3d.com/Documentation/ScriptReference/CharacterController-isGrounded.html if(CharacterController.IsGrounded) { moveDirection += Vector3(0, 0,Input.GetAxis("Vertical")); }

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images