From a426cf92e974e6131cdf3455c3df08fe771d9f10 Mon Sep 17 00:00:00 2001 From: lesleyrs <19632758+lesleyrs@users.noreply.github.com> Date: Mon, 4 Dec 2023 17:58:55 +0100 Subject: [PATCH] fix free and fp cam --- src/rcamera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcamera.h b/src/rcamera.h index c999370f5..071033fee 100644 --- a/src/rcamera.h +++ b/src/rcamera.h @@ -447,9 +447,9 @@ void UpdateCamera(Camera *camera, int mode) { Vector2 mousePositionDelta = GetMouseDelta(); - bool moveInWorldPlane = ((mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON)); + bool moveInWorldPlane = ((mode == CAMERA_THIRD_PERSON)); bool rotateAroundTarget = ((mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL)); - bool lockView = ((mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL)); + bool lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL)); bool rotateUp = false; if (mode == CAMERA_ORBITAL)