diff options
| author | Danil <[email protected]> | 2024-02-05 21:53:14 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-05 20:53:14 +0100 |
| commit | 6a8cc62b677c37ce56ab10ab1538c94be93cb0bd (patch) | |
| tree | dd346d84b82c4faf17f386d1e0ea851182139df7 /src | |
| parent | e9291fa4c77c85e1fe6808289632e5ce4a93eed6 (diff) | |
| download | raylib-6a8cc62b677c37ce56ab10ab1538c94be93cb0bd.tar.gz raylib-6a8cc62b677c37ce56ab10ab1538c94be93cb0bd.zip | |
Fix GetCameraRight (#3784)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcamera.h | 2 |
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 |
