diff options
| author | Léo Lam <leo@leolam.fr> | 2022-12-17 22:10:38 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-12-17 22:10:38 +0100 |
| commit | 7934e14ad675f27d6e7da2dff9b3175e1419dbc7 (patch) | |
| tree | f07d39f545962c9c370bd5e92e8822a5a37995fe /src/KingSystem/Physics/StaticCompound/physStaticCompoundRigidBodyGroup.cpp | |
| parent | 294666ba132d0349ec9a787f87a9049edb96f17f (diff) | |
ksys/phys: Use named bools in RigidBody to improve call site readability
Diffstat (limited to 'src/KingSystem/Physics/StaticCompound/physStaticCompoundRigidBodyGroup.cpp')
| -rw-r--r-- | src/KingSystem/Physics/StaticCompound/physStaticCompoundRigidBodyGroup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/Physics/StaticCompound/physStaticCompoundRigidBodyGroup.cpp b/src/KingSystem/Physics/StaticCompound/physStaticCompoundRigidBodyGroup.cpp index 86929a4a..8623a3b3 100644 --- a/src/KingSystem/Physics/StaticCompound/physStaticCompoundRigidBodyGroup.cpp +++ b/src/KingSystem/Physics/StaticCompound/physStaticCompoundRigidBodyGroup.cpp @@ -126,7 +126,7 @@ void StaticCompoundRigidBodyGroup::addToWorld() { auto lock = body->makeScopedLock(); - body->setTransform(getTransform(), true); + body->setTransform(getTransform()); if (body->getMotionFlags().isOn(RigidBody::MotionFlag::BodyRemovalRequested)) { body->resetMotionFlagDirect(RigidBody::MotionFlag::BodyRemovalRequested); @@ -204,7 +204,7 @@ void StaticCompoundRigidBodyGroup::applyExtraTransforms() { } for (int i = 0, n = mRigidBodies.size(); i < n; ++i) { - mRigidBodies[i]->setTransform(getTransform(), true); + mRigidBodies[i]->setTransform(getTransform()); } } |
