From d0aa23fdf48242834fcdc23adf25b01ef72b39ca Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Wed, 22 Mar 2023 18:00:39 -0700 Subject: [PATCH] About to test prefabs but I need more horsepower --- src/dawnrose/scene/components/GameCamera.cpp | 2 +- src/dawnrose/scene/components/GameCamera.hpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dawnrose/scene/components/GameCamera.cpp b/src/dawnrose/scene/components/GameCamera.cpp index 13666464..25abce38 100644 --- a/src/dawnrose/scene/components/GameCamera.cpp +++ b/src/dawnrose/scene/components/GameCamera.cpp @@ -30,7 +30,7 @@ void GameCamera::onStart() { if(current != slowTarget) { float_t m = 6.0f; float_t s = delta * 3.0f; - current += glm::vec2( + current += glm::vec2(. mathClamp((slowTarget.x - current.x) * s, -m, m), mathClamp((slowTarget.y - current.y) * s, -m, m) ); diff --git a/src/dawnrose/scene/components/GameCamera.hpp b/src/dawnrose/scene/components/GameCamera.hpp index 25a793c6..8323862f 100644 --- a/src/dawnrose/scene/components/GameCamera.hpp +++ b/src/dawnrose/scene/components/GameCamera.hpp @@ -18,7 +18,6 @@ namespace Dawn { glm::vec2 lookOffsetScale = glm::vec2(6.0f, 3.0f); float_t movementScrollSpeed = 0.5f; glm::vec3 zoomOffset = glm::vec3(0, 30.0f, 7.5f); - PlayerController *player = nullptr; GameCamera(SceneItem *item);