From 8f3e9e1aab43c5a81bbbc02a48c91a0d37024c0f 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)