duck

duck

Jul 22nd, 2010
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (Vector3.Dot(truckDelta,stationRight) < 0) {
  2.  
  3.         // go anticlockwise
  4.         print("anticlockwise");
  5.         truckDirection = Vector3( -truckDelta.y, 0, truckDelta.x );
  6.        
  7.        
  8. } else {
  9.  
  10.         // go clockwise
  11.         print("clockwise");
  12.         truckDirection = Vector3( truckDelta.y, 0, -truckDelta.x );
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment