diff options
| author | Léo Lam <leo@leolam.fr> | 2022-01-29 19:47:52 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-01-30 00:17:02 +0100 |
| commit | d9eeeb6eccd0c388ac7ea33eeab54b74be1681ff (patch) | |
| tree | 75d2d6b4869704cd2bc02760757d0817d0ce15aa /src/KingSystem/Physics/System/physInstanceSet.cpp | |
| parent | 70d6ec2ae7a30cee38b9755e5bffc970ccac06b8 (diff) | |
ksys/phys: Add RigidBodySet
Diffstat (limited to 'src/KingSystem/Physics/System/physInstanceSet.cpp')
| -rw-r--r-- | src/KingSystem/Physics/System/physInstanceSet.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/KingSystem/Physics/System/physInstanceSet.cpp b/src/KingSystem/Physics/System/physInstanceSet.cpp index 33d3f741..696405f6 100644 --- a/src/KingSystem/Physics/System/physInstanceSet.cpp +++ b/src/KingSystem/Physics/System/physInstanceSet.cpp @@ -1,4 +1,5 @@ #include "KingSystem/Physics/System/physInstanceSet.h" +#include "KingSystem/Physics/RigidBody/physRigidBodySet.h" namespace ksys::phys { @@ -77,7 +78,7 @@ u32 InstanceSet::sub_7100FB9C2C() const { void InstanceSet::sub_7100FBA9BC() { for (auto& rb : mRigidBodySets) { - rb.sub_7100FA97FC(); + rb.callRigidBody_x_0(); } for (auto& body : mList) { @@ -92,7 +93,7 @@ void InstanceSet::sub_7100FBACE0(phys::ContactLayer layer) { bool sensor = phys::getContactLayerType(layer) != ContactLayerType::Entity; for (auto& rb : mRigidBodySets) { - rb.disableCollisionMaybe(layer); + rb.disableContactLayer(layer); } if (sensor) return; @@ -106,7 +107,7 @@ void InstanceSet::sub_7100FBACE0(phys::ContactLayer layer) { void InstanceSet::sub_7100FBAD74() { for (auto& rb : mRigidBodySets) { - rb.disableAllContact(); + rb.disableAllContactLayers(); } if (mRagdollController != nullptr) { mRagdollController->sub_71012217A8(); @@ -143,7 +144,7 @@ void InstanceSet::sub_7100FBB00C(phys::RigidBody* body, phys::RigidBodyParam* pa void* InstanceSet::sub_7100FBBC28(const sead::SafeString& name) const { for (auto& rb : mRigidBodySets) { - void* p = rb.findXByName(name); + void* p = rb.findBodyByHavokName(name); if (p != nullptr) return p; } |
