21.07.2012, 18:11
How would I go about making an object face a certain point? I need this for a new script I'm working on and I need the object to face the player.
x1 = x0 + r * cos(a) y1 = y0 + r * sin(a)
Angles are reversed in GTA:SA; 90 degrees would be East in the real world, but in GTA:SA 90 degrees is in fact West. North and South are still 0/360 and 180. To convert this, simply do 360 - angle. |