mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
fixed right vector
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user