16.02.2009, 16:01
in gta:
in my calculations (pythagoras):
how can i convert the angle that I've calculated, to the type of angle used in gta?
i can't figure it out![Sad](images/smilies/sad.gif)
it has a difference of 90° each time, and the rotation is also the opposite![confused](images/smilies/confused.gif)
//edit i found it:
make the degrees negative by decreasing it with 2xitself
and then add it with 90.0 because the numbers are always +90 ^^
so:
Код:
north (0) | (270)west- -east (90) | south (180)
Код:
north (90) | (180)west- -east (0) | south (270)
i can't figure it out
![Sad](images/smilies/sad.gif)
it has a difference of 90° each time, and the rotation is also the opposite
![confused](images/smilies/confused.gif)
//edit i found it:
make the degrees negative by decreasing it with 2xitself
and then add it with 90.0 because the numbers are always +90 ^^
so:
Код:
new Float:Par = floatadd((floatsub(Pa, (floatmul(Pa, 2)))), 90);
Quote:
par = playerangle real (in gta) pa = player angle |