From 5a1b126f1f6d55226c2b5068d0c17c428fd29ba8 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 6 Aug 2023 04:27:07 +0200 Subject: Create separate Player entity and add bad collision system --- src/Math/Matrix.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Math/Matrix.hpp') diff --git a/src/Math/Matrix.hpp b/src/Math/Matrix.hpp index 41d3661..c4532c3 100644 --- a/src/Math/Matrix.hpp +++ b/src/Math/Matrix.hpp @@ -3,7 +3,6 @@ #include #include "../Common/Sizes.hpp" #include "Rotation.hpp" -#include "Trig.hpp" template struct Matrix { @@ -47,7 +46,7 @@ struct Matrix { } static Matrix<4, 4, T> rotation(Rotation angles) { - auto radians = angles.vector.map([](auto a) { return Math::radians(a); }); + auto radians = angles.radians(); auto c = radians.map([](auto a) { return cos(a); }); auto s = radians.map([](auto a) { return sin(a); }); -- cgit 1.4.1