| 27 | #include "XmlNode.h" |
| 28 | |
| 29 | FVector MjUtils::MjToUEPosition(const double* pos) |
| 30 | { |
| 31 | // MuJoCo (Right-handed, Z-up) -> UE (Left-handed, Z-up) |
| 32 | // scale: 1 unit -> 100 cm |
| 33 | // Axis: X->X, Y->-Y, Z->Z |
| 34 | if (!pos) |
| 35 | return FVector::ZeroVector; |
| 36 | return FVector(pos[0] * 100.0, pos[1] * -100.0, pos[2] * 100.0); |
| 37 | } |
| 38 | |
| 39 | FVector MjUtils::MjToUEPosition(const float* pos) |
| 40 | { |
nothing calls this directly
no outgoing calls
no test coverage detected