mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
Fix GetCameraRight (#3784)
This commit is contained in:
@@ -243,7 +243,7 @@ Vector3 GetCameraRight(Camera *camera)
|
|||||||
Vector3 forward = GetCameraForward(camera);
|
Vector3 forward = GetCameraForward(camera);
|
||||||
Vector3 up = GetCameraUp(camera);
|
Vector3 up = GetCameraUp(camera);
|
||||||
|
|
||||||
return Vector3CrossProduct(forward, up);
|
return Vector3Normalize(Vector3CrossProduct(forward, up));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Moves the camera in its forward direction
|
// Moves the camera in its forward direction
|
||||||
|
Reference in New Issue
Block a user