- quaternion improvements

This commit is contained in:
Gutawer 2022-11-20 15:49:22 +00:00 committed by Christoph Oelckers
commit 63c2d93033
4 changed files with 354 additions and 352 deletions

View file

@ -1134,7 +1134,7 @@ DEFINE_FIELD(DHUDFont, mFont);
// Quaternion
void QuatFromAngles(double yaw, double pitch, double roll, DQuaternion* pquat)
{
*pquat = DQuaternion::FromAngles(yaw, pitch, roll);
*pquat = DQuaternion::FromAngles(DAngle::fromDeg(yaw), DAngle::fromDeg(pitch), DAngle::fromDeg(roll));
}
DEFINE_ACTION_FUNCTION_NATIVE(_QuatStruct, FromAngles, QuatFromAngles)