03.04.2010, 01:28
Quote:
Originally Posted by dracar
Thats nice, works for now, still dont understand it though lol
|
The first number is cosine and the second after the comman sine (thats a unit circle), so
![](http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Unit_circle_angles.svg/400px-Unit_circle_angles.svg.png)
cos(0°) = 1, cos(90°) = 0, cos(180°) = -1, cos(270°) = 0 (calculates the X)
sin(0°) = 0, sin(90°) = 1, sin(180°) = 0, sin(270°) = -1 (calculates Y)
and the other numbers you only need to know for sure if you are gonna study
and because the angle in GTA San Andreas start at the "normal" 90° we just could do (Angle + 90.0) or the more famous methode switching the trigonometric functions and put a minus before the Angle
Or just read the en.wiki page about Unit circle (its not rly long)
Hope that helped a bit