Munchy2007

BuggyStart

Mar 16th, 2016
23,512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.18 KB | None | 0 0
  1. void Start()
  2.   {
  3.     body = GetComponent<Rigidbody>();
  4.     body.centerOfMass = Vector3.down;
  5.  
  6.     layerMask = 1 << LayerMask.NameToLayer("Vehicle");
  7.     layerMask = ~layerMask;
  8.   }
Advertisement
Add Comment
Please, Sign In to add comment