- Joined
- Oct 28, 2008
- Messages
- 27
How would I go about making a unit face only left or right, yet still be free to move about?
The model would face left when the left key is pressed, and right when right is pressed...
I have used the code provided by Wimpycow in the youtube tutorial for my movement... Part 1 and Part 2.
I already have a rotated unit model, so I suppose this would involve possibly resetting the unit's facing angle every .04 seconds or such to either -90 or 90 degrees?
The model would face left when the left key is pressed, and right when right is pressed...
I have used the code provided by Wimpycow in the youtube tutorial for my movement... Part 1 and Part 2.
I already have a rotated unit model, so I suppose this would involve possibly resetting the unit's facing angle every .04 seconds or such to either -90 or 90 degrees?