Advertisement
LittleAngel

Tumble Code

Oct 18th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Rotator : MonoBehaviour
  5. {
  6. public float tumble;
  7.  
  8. void Start ()
  9. {
  10. rigidbody.angularVelocity = Random.insideUnitSphere * tumble;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement