From bddee03f1e88094292c17105980c5bbd88a3c25d Mon Sep 17 00:00:00 2001 From: Dor Shapira <107134807+sDos280@users.noreply.github.com> Date: Wed, 9 Nov 2022 16:02:08 +0200 Subject: [PATCH] Update FreeCamC.c assign position to the camera position --- rlExtrasC/FreeCamC.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rlExtrasC/FreeCamC.c b/rlExtrasC/FreeCamC.c index 8f08b76..6651fcf 100644 --- a/rlExtrasC/FreeCamC.c +++ b/rlExtrasC/FreeCamC.c @@ -63,7 +63,7 @@ void FreeCam_LookAt(FreeCamera* camera, Vector3 target, Vector3 up) // called to set where the camera is void FreeCam_SetPosition(FreeCamera* camera, Vector3 position) { - camera->Position = camera->Position; + camera->Position = position; } // Called to move the camera relative to it's current orientation @@ -123,4 +123,4 @@ void FreeCam_RotateHeading(FreeCamera* camera, float angle, bool useY) camera->Up = Vector3Normalize(Vector3Transform(camera->Up, matrix)); camera->Forward = Vector3Normalize(Vector3Transform(camera->Forward, matrix)); -} \ No newline at end of file +}