diff options
| author | Léo Lam <leo@leolam.fr> | 2022-01-13 02:46:12 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-01-13 02:47:07 +0100 |
| commit | bcbc8bd2eae5fccb8fd6e3bd739d5d44bd9e48eb (patch) | |
| tree | c366aeec2c2b3fb96e4f297abd58efc33cfb2b44 /src | |
| parent | d37e60d7e8c45f274e0b8ea54bb678f7e60dd4ef (diff) | |
ksys/phys: Fix a nasty typo in toHkQuat
Diffstat (limited to 'src')
| -rw-r--r-- | src/KingSystem/Physics/physConversions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/Physics/physConversions.h b/src/KingSystem/Physics/physConversions.h index 48db1dd9..29b5b4e9 100644 --- a/src/KingSystem/Physics/physConversions.h +++ b/src/KingSystem/Physics/physConversions.h @@ -38,11 +38,11 @@ inline void toQuat(sead::Quatf* out, const hkQuaternionf& quat) { } inline void toHkQuat(hkQuaternionf* out, const sead::Quatf& quat) { - out->set(quat.x, quat.y, quat.x, quat.w); + out->set(quat.x, quat.y, quat.z, quat.w); } [[nodiscard]] inline hkQuaternionf toHkQuat(const sead::Quatf& quat) { - return {quat.x, quat.y, quat.x, quat.w}; + return {quat.x, quat.y, quat.z, quat.w}; } inline void toMtx34(sead::Matrix34f* out, const hkTransformf& transform) { |
