27.02.2013, 10:24
I changed to +90 and made some changes, now it works perfectly
if the RZ is like lower than -70 or more than 80
the Y has to be changed.
if the RZ is like lower than -70 or more than 80
the Y has to be changed.
pawn Код:
if(rz > 80.0 || rz < -70.0)
{
y += (1.5 * floatcos((-rz+90), degrees));
}
else
{
x += (1.5 * floatsin((-rz+90), degrees));
}