This commit is contained in:
veclavtalica 2025-02-02 05:39:47 +03:00
parent 7284bb726a
commit ccfdfd8a35

View File

@ -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 = {