From 94311f9c4e82b7475802b1934cc0c5b243e0cd2f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 3 Mar 2021 00:08:47 +0000 Subject: Replace Transform with Location Simpler, unbinds the transformation matrices for location, now done just in the shader. --- gfx/followCameraController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/followCameraController.cpp') diff --git a/gfx/followCameraController.cpp b/gfx/followCameraController.cpp index 25861b6..1ee385a 100644 --- a/gfx/followCameraController.cpp +++ b/gfx/followCameraController.cpp @@ -1,8 +1,8 @@ #include "followCameraController.h" #include "game/vehicles/vehicle.h" -#include "gfx/gl/transform.h" #include #include +#include #include #include #include @@ -15,7 +15,7 @@ FollowCameraController::updateCamera(Camera * camera) const { const auto [pos, rot] = [this]() { const auto t {target.lock()}; - return std::tie(t->location.GetPos(), t->location.GetRot()); + return std::tie(t->location.pos, t->location.rot); }(); switch (mode) { -- cgit v1.2.3