Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. float input_accel = Input.GetAxis("Vertical");
  2. float input_steering = Input.GetAxis("Horizontal");
  3. rb.AddForce(transform.forward * input_accel);
  4. transform.Rotate(0,Time.deltaTime * input_steering * stat_turnspeed,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement