Skip to content

Commit 6a8cc62

Browse files
authored
Fix GetCameraRight (raysan5#3784)
1 parent e9291fa commit 6a8cc62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rcamera.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Vector3 GetCameraRight(Camera *camera)
243243
Vector3 forward = GetCameraForward(camera);
244244
Vector3 up = GetCameraUp(camera);
245245

246-
return Vector3CrossProduct(forward, up);
246+
return Vector3Normalize(Vector3CrossProduct(forward, up));
247247
}
248248

249249
// Moves the camera in its forward direction

0 commit comments

Comments
 (0)