fixed right vector

This commit is contained in:
2024-09-03 23:28:09 +03:00
parent 0994c645ef
commit 8f3e9e1aab

View File

@@ -67,9 +67,9 @@ namespace omath
const auto sinRoll = std::sin(angles::DegreesToRadians(roll)); const auto sinRoll = std::sin(angles::DegreesToRadians(roll));
return {-sinRoll*sinPitch*cosYaw + -cosRoll*-sinYaw, return {sinRoll*sinPitch*cosYaw + cosRoll*sinYaw,
-sinRoll*sinPitch*sinYaw + -cosRoll*cosYaw, sinRoll*sinPitch*sinYaw + -cosRoll*cosYaw,
sinRoll*cosPitch}; -sinRoll*cosPitch};
} }
Vector3 Vector3::UpVector(float pitch, float yaw, float roll) Vector3 Vector3::UpVector(float pitch, float yaw, float roll)