Advertisement
Guest User

Untitled

a guest
May 7th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. this.transform.GetComponent<Rigidbody>().velocity = new Vector3(WalkingSpeed * Input.GetAxis("Horizontal"), WalkingSpeed * Input.GetAxis("Vertical"), this.transform.GetComponent<Rigidbody>().velocity.z);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement