Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Vector3.Dot(truckDelta,stationRight) < 0) {
- // go anticlockwise
- print("anticlockwise");
- truckDirection = Vector3( -truckDelta.y, 0, truckDelta.x );
- } else {
- // go clockwise
- print("clockwise");
- truckDirection = Vector3( truckDelta.y, 0, -truckDelta.x );
- }
Advertisement
Add Comment
Please, Sign In to add comment