View Single Post
Re: v_angle.y is always 0 ???
Old
  (#10)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: v_angle.y is always 0 ??? - 25-02-2005

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;
}
  
Reply With Quote