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