diff options
| author | Léo Lam <leo@leolam.fr> | 2022-12-19 12:25:57 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-12-20 16:27:40 +0100 |
| commit | 08ccaf9c3ce8c9ac637a5ea6b5e2f27799ec9fe2 (patch) | |
| tree | 3fa4d815efdd18bbb8f8ef238d5d23d6f6de506f /lib | |
| parent | faf29549c6f8ecbf575325fefa3ba9f6abcd0f4e (diff) | |
ksys/phys: Add RagdollController::getTransform and more
Credit to @Dragorn421 for helping me figure out the rotation matrix
thing in the getTransform function
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gsys/include/gsys/gsysModel.h | 1 | ||||
| -rw-r--r-- | lib/hkStubs/Havok/Common/Base/Math/QsTransform/hkQsTransformf.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/gsys/include/gsys/gsysModel.h b/lib/gsys/include/gsys/gsysModel.h index 7cc7769b..a307888c 100644 --- a/lib/gsys/include/gsys/gsysModel.h +++ b/lib/gsys/include/gsys/gsysModel.h @@ -39,6 +39,7 @@ public: sead::PtrArray<ModelInfo>& getUnits() { return mUnitAccess; } const sead::PtrArray<ModelInfo>& getUnits() const { return mUnitAccess; } + const sead::Matrix34f& getMatrix() const { return mMatrix; } const sead::Vector3f& getScale() const { return _88; } void setBoneLocalMatrix(const BoneAccessKey& key, const sead::Matrix34f& matrix, diff --git a/lib/hkStubs/Havok/Common/Base/Math/QsTransform/hkQsTransformf.h b/lib/hkStubs/Havok/Common/Base/Math/QsTransform/hkQsTransformf.h index d9025bbb..b2bc9965 100644 --- a/lib/hkStubs/Havok/Common/Base/Math/QsTransform/hkQsTransformf.h +++ b/lib/hkStubs/Havok/Common/Base/Math/QsTransform/hkQsTransformf.h @@ -56,6 +56,8 @@ public: /// this *= b HK_FORCE_INLINE void setMulEq(const hkQsTransformf& b); + bool isOk(hkFloat32 epsilon = hkFloat32(1e-3f)) const; + void fastRenormalize(); hkVector4f m_translation; |
