From 8566e63b26f9e7ee809c03394743a0576c499378 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 13 Jan 2024 19:45:54 +0000 Subject: We only need 3x3 matrix for model rotation spec --- lib/location.cpp | 2 +- lib/location.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/location.cpp b/lib/location.cpp index ff7cfa6..13acfde 100644 --- a/lib/location.cpp +++ b/lib/location.cpp @@ -2,7 +2,7 @@ #include "maths.h" #include -glm::mat4 +glm::mat3 Location::getRotationTransform() const { return rotate_ypr(rot); diff --git a/lib/location.h b/lib/location.h index 8570fc2..016aee7 100644 --- a/lib/location.h +++ b/lib/location.h @@ -9,7 +9,7 @@ public: explicit Location(GlobalPosition3D pos = {}, Rotation3D rot = {}) : pos {pos}, rot {rot} { } #endif - [[nodiscard]] glm::mat4 getRotationTransform() const; + [[nodiscard]] glm::mat3 getRotationTransform() const; GlobalPosition3D pos; Rotation3D rot; -- cgit v1.2.3