Quote:
Originally Posted by Gamer_Z
Quote:
Originally Posted by MP2
Quote:
Originally Posted by Gamer_Z
the GTA degrees go clockwise from -180 to 180, the maths unit circle goes with the clock from 0 to 360 (or reverse, dunno if I said it good in English :P)
At least I know it has to do with the directions (clockwise/counter-clockwise) and the domain ([-180,180] / [0, 360]) of the degrees.
|
Are you 100% sure? I'm fairly confident that they go from 0-360, just anti-clockwise (east is 270, but is 90 in real life). I've never seen negative angles in SA:MP..
|
try GetVehicleZAngle and you will see :P
|
I had to test this just to be sure, as I was very confident I was right, and I was.. (sorry to correct you :P)
[ame]http://www.youtube.com/watch?v=f9vm8VWRdMs[/ame]
pawn Code:
public OnPlayerUpdate(playerid)
{
new Float:a, szString[32];
if(!IsPlayerInAnyVehicle(playerid))
{
GetPlayerFacingAngle(playerid, a);
format(szString, sizeof(szString), "Player Angle: %.0f", a);
}
else
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
format(szString, sizeof(szString), "Veh Angle: %.0f", a);
}
GameTextForPlayer(playerid, szString, 3000, 3);
return 1;
}
Are you referring to something else?