Advertisement
aandnota

Random Bounce

Feb 13th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. function OnCollisionEnter(other : Collision) {
  2. rigidbody.AddForce(Random.insideUnitCircle * 10, ForceMode.Impulse);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement