Fix GetCameraRight (#3784)

This commit is contained in:
Danil 2024-02-05 21:53:14 +02:00 committed by GitHub
parent e9291fa4c7
commit 6a8cc62b67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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