From f66811b772c81fc182e353308b1c1a3667201e9b Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 5 Oct 2022 18:27:19 +0200 Subject: Non-camera relative movement --- src/Math/Rotation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Math/Rotation.hpp') diff --git a/src/Math/Rotation.hpp b/src/Math/Rotation.hpp index 334ede2..73a8219 100644 --- a/src/Math/Rotation.hpp +++ b/src/Math/Rotation.hpp @@ -24,7 +24,7 @@ public: } static Vector<3> wrap(Vector<3> v) { - return v.apply([=](float a) -> float { return fmod(a, 360.0f); }); + return v.map([](auto a) { return fmod(a, 360.0f); }); } Vector<3> vector; -- cgit 1.4.1