Quote:
Just substract -180 from the y and z angle and wrap them with something like this:
Code:
float WrapYZAngle(float angle)
{
while (angle >= 360.0f) angle -= 360.0f;
while (angle < 0.0f) angle += 360.0f;
return angle;
}
|
bad solution, if angle is big number, subtracting 360 won't help and you have deadlock.
http://wiki.bots-united.com/index.ph...Angle_facility
And for austin,
all about angles