half pi.
This commit is contained in:
		@@ -456,7 +456,7 @@ DrawCameraFromPrincipalAxesResult draw_camera_from_principal_axes(Vec3 position,
 | 
			
		||||
 | 
			
		||||
    /* rotate so that yaw = 0 results in (0, 0, 1) target vector */
 | 
			
		||||
    float yawc, yaws, pitchc, pitchs;
 | 
			
		||||
    sincosf(yaw + (float)M_PI, &yaws, &yawc);
 | 
			
		||||
    sincosf(yaw + (float)M_PI_2, &yaws, &yawc);
 | 
			
		||||
    sincosf(pitch, &pitchs, &pitchc);
 | 
			
		||||
 | 
			
		||||
    Camera const camera = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user