Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Checking for Input every frame and putting it in a variable
- moveHorizontal = Input.GetAxisRaw("Horizontal");
- moveVertical = Input.GetAxisRaw("Vertical");
- //Movement Input
- Vector3 moveInput = new Vector3(moveHorizontal, 0f, moveVertical);
- Vector3 moveVelocity = moveInput.normalized * moveSpeed;
- //Method from PlayerController Script
- controller.Move(moveVelocity);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement