From 08ccaf9c3ce8c9ac637a5ea6b5e2f27799ec9fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 19 Dec 2022 12:25:57 +0100 Subject: ksys/phys: Add RagdollController::getTransform and more Credit to @Dragorn421 for helping me figure out the rotation matrix thing in the getTransform function --- src/KingSystem/Physics/System/physInstanceSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/KingSystem/Physics/System/physInstanceSet.cpp') diff --git a/src/KingSystem/Physics/System/physInstanceSet.cpp b/src/KingSystem/Physics/System/physInstanceSet.cpp index 872cd713..6e5269c8 100644 --- a/src/KingSystem/Physics/System/physInstanceSet.cpp +++ b/src/KingSystem/Physics/System/physInstanceSet.cpp @@ -192,7 +192,7 @@ void InstanceSet::sub_7100FBD284(const sead::Matrix34f& mtx) { if (mRagdollController == nullptr) return; - if (mRagdollController->sub_7101221CC4() == 0) + if (mRagdollController->getWorldState() == RagdollController::WorldState::AddedToWorld) sub_7100FBC890(mtx, false, false); } -- cgit v1.2.3