- quaternion improvements
This commit is contained in:
parent
9f0c518be9
commit
63c2d93033
4 changed files with 354 additions and 352 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue