From 69c4b420fa8d22e68f768cb64de054f4b4055a19 Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 3 Sep 2024 23:28:09 +0300 Subject: [PATCH] fixed right vector --- source/Vector3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Vector3.cpp b/source/Vector3.cpp index b74ef6e..306f5af 100644 --- a/source/Vector3.cpp +++ b/source/Vector3.cpp @@ -67,9 +67,9 @@ namespace omath const auto sinRoll = std::sin(angles::DegreesToRadians(roll)); - return {-sinRoll*sinPitch*cosYaw + -cosRoll*-sinYaw, - -sinRoll*sinPitch*sinYaw + -cosRoll*cosYaw, - sinRoll*cosPitch}; + return {sinRoll*sinPitch*cosYaw + cosRoll*sinYaw, + sinRoll*sinPitch*sinYaw + -cosRoll*cosYaw, + -sinRoll*cosPitch}; } Vector3 Vector3::UpVector(float pitch, float yaw, float roll)