浏览代码

Fix GetCameraRight (#3784)

Danil 1 年之前
父节点
当前提交
6a8cc62b67
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rcamera.h

+ 1 - 1
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