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