summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorDanil <[email protected]>2024-02-05 21:53:14 +0200
committerGitHub <[email protected]>2024-02-05 20:53:14 +0100
commit6a8cc62b677c37ce56ab10ab1538c94be93cb0bd (patch)
treedd346d84b82c4faf17f386d1e0ea851182139df7 /src
parente9291fa4c77c85e1fe6808289632e5ce4a93eed6 (diff)
downloadraylib-6a8cc62b677c37ce56ab10ab1538c94be93cb0bd.tar.gz
raylib-6a8cc62b677c37ce56ab10ab1538c94be93cb0bd.zip
Fix GetCameraRight (#3784)
Diffstat (limited to 'src')
-rw-r--r--src/rcamera.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcamera.h b/src/rcamera.h
index b1805c37..8e513ef1 100644
--- a/src/rcamera.h
+++ b/src/rcamera.h
@@ -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