Skip to content

Commit

Permalink
Fix GetCameraRight (#3784)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilwhale authored Feb 5, 2024
1 parent e9291fa commit 6a8cc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rcamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Vector3 GetCameraRight(Camera *camera)
Vector3 forward = GetCameraForward(camera);
Vector3 up = GetCameraUp(camera);

return Vector3CrossProduct(forward, up);
return Vector3Normalize(Vector3CrossProduct(forward, up));
}

// Moves the camera in its forward direction
Expand Down

0 comments on commit 6a8cc62

Please sign in to comment.