Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float input_accel = Input.GetAxis("Vertical");
- float input_steering = Input.GetAxis("Horizontal");
- rb.AddForce(transform.forward * input_accel);
- transform.Rotate(0,Time.deltaTime * input_steering * stat_turnspeed,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement