Advertisement
NPSF3000

Untitled

Jun 2nd, 2011
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var impulse : float = 150;
  2.  
  3. function FixedUpdate()
  4. {
  5.      rigidbody.AddForce(Vector3(Input.GetAxis ("Horizontal"), 0, Input.GetAxis ("Vertical")) * impulse*Time.deltaTime);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement