duck

duck

Jul 21st, 2010
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var stationRight : Vector3 = draggedObject.station.right;
  2. var truckDelta : Vector3 = (draggedObject.station.position - hitPoint);
  3.  
  4. if (Vector3.Dot(truckDelta,stationRight) < 0) {
  5.     // go anticlockwise
  6. } else {
  7.     // go clockwise
  8. }
Advertisement
Add Comment
Please, Sign In to add comment