MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / UEToMjRotation

Method UEToMjRotation

Source/URLab/Private/MuJoCo/Utils/MjUtils.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void MjUtils::UEToMjRotation(const FQuat& quat, double* outQuat)
65{
66 if (!outQuat)
67 return;
68
69 // UE [x,y,z,w] -> MuJoCo [w,x,y,z] with Y-flip for handedness
70
71 outQuat[0] = quat.W;
72 outQuat[1] = -quat.X;
73 outQuat[2] = quat.Y;
74 outQuat[3] = -quat.Z;
75}
76
77FString MjUtils::MjToString(const char* text)
78{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected