diff options
| author | Léo Lam <leo@leolam.fr> | 2022-01-13 12:11:43 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-01-13 12:14:05 +0100 |
| commit | 278b088bd123c0952b5f4686d7222237b64e4326 (patch) | |
| tree | 142f9f07fd06e6d9561736365ca9c5edb6696598 /src/KingSystem/Physics/System/physInstanceSet.cpp | |
| parent | 3d9664ed52e996ba39d939bd681c3f5400dd4e1c (diff) | |
ksys/phys: Rename RigidBodyParamView to RigidBodyInstanceParam for clarity
Diffstat (limited to 'src/KingSystem/Physics/System/physInstanceSet.cpp')
| -rw-r--r-- | src/KingSystem/Physics/System/physInstanceSet.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/KingSystem/Physics/System/physInstanceSet.cpp b/src/KingSystem/Physics/System/physInstanceSet.cpp index 12ea0bb2..77dfaca1 100644 --- a/src/KingSystem/Physics/System/physInstanceSet.cpp +++ b/src/KingSystem/Physics/System/physInstanceSet.cpp @@ -127,17 +127,18 @@ void InstanceSet::sub_7100FBB00C(phys::RigidBody* body, phys::RigidBodyParam* pa if (body == nullptr) return; - phys::RigidBodyParamView view; - param->getParams(&view); - if (view.contact_layer == phys::ContactLayer::SensorCustomReceiver) { - body->sub_7100F8F9E8(&view.flags, _188[body->isMassScaling()]); - } else if (view.info_5e0) { - body->sub_7100F8FA44(view.contact_layer, view.info_5e0); + phys::RigidBodyInstanceParam instance_params; + param->getParams(&instance_params); + if (instance_params.contact_layer == phys::ContactLayer::SensorCustomReceiver) { + body->sub_7100F8F9E8(&instance_params.flags, _188[body->isMassScaling()]); + } else if (instance_params.info_5e0) { + body->sub_7100F8FA44(instance_params.contact_layer, instance_params.info_5e0); } else { - body->sub_7100F8F8CC(view.contact_layer, view.groundhit, _188[body->isMassScaling()]); + body->sub_7100F8F8CC(instance_params.contact_layer, instance_params.groundhit, + _188[body->isMassScaling()]); } - body->setCollideGround(view.no_hit_ground == 0); - body->setCollideWater(view.no_hit_water == 0); + body->setCollideGround(instance_params.no_hit_ground == 0); + body->setCollideWater(instance_params.no_hit_water == 0); body->sub_7100F8F51C(); } |
