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