From 41cbf6899b142a9dbfd31811081596097e6238a1 Mon Sep 17 00:00:00 2001 From: Roberto Capuano Date: Sun, 16 Jun 2024 10:44:24 +0200 Subject: [PATCH] fix RigidBody without Collider problem Applying a force a RigidBody without collider this escapes from actual Joints. https://github.com/DanielChappuis/reactphysics3d/issues/388 --- src/engine/PhysicsWorld.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/engine/PhysicsWorld.cpp b/src/engine/PhysicsWorld.cpp index 9db61253..80a425c5 100644 --- a/src/engine/PhysicsWorld.cpp +++ b/src/engine/PhysicsWorld.cpp @@ -728,9 +728,6 @@ void PhysicsWorld::createIslands() { // If the body is static, we go to the next body if (mRigidBodyComponents.mBodyTypes[b] == BodyType::STATIC) continue; - // If the body does not have any simulation collider, we skip it - if (!mBodyComponents.getHasSimulationCollider(mRigidBodyComponents.mRigidBodies[b]->getEntity())) continue; - // Reset the stack of bodies to visit bodyEntitiesToVisit.clear();