Quantcast
Channel: Answers by "PaxStyle"
Viewing all articles
Browse latest Browse all 15

Answer by PaxStyle

$
0
0
Oh I hadn't seen the answer.. This is the Code: #pragma strict var amount = 5.0; function Update() { if (Input.GetKey(KeyCode.R)) { rigidbody.AddForce(transform.right * amount); } else if (Input.GetKey(KeyCode.T)) { rigidbody.AddForce(-transform.right * amount); } else if (Input.GetKey(KeyCode.Y)) { rigidbody.velocity = rigidbody.velocity * 0.9; } }

Viewing all articles
Browse latest Browse all 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>