Hot answers tagged


When you hold the mouse button down, begin tracking the location of the mouse. Every frame, compare the current location with the location on the previous frame. If the vector from previous to current is large enough, orient the car in the direction of the vector. When you release the mouse button, stop: tracking, comparing and rotating. EDIT private ...

Only top voted, non community-wiki answers of a minimum length are eligible