MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / askForBroadPhaseCollisionCheck

Method askForBroadPhaseCollisionCheck

src/body/Body.cpp:291–302  ·  view source on GitHub ↗

Ask the broad-phase to test again the collision shapes of the body for collision (as if the body has moved).

Source from the content-addressed store, hash-verified

289// Ask the broad-phase to test again the collision shapes of the body for collision
290// (as if the body has moved).
291void Body::askForBroadPhaseCollisionCheck() const {
292
293 // For all the colliders of the body
294 const Array<Entity>& colliderEntities = mWorld.mBodyComponents.getColliders(mEntity);
295 const uint32 nbColliderEntities = static_cast<uint32>(colliderEntities.size());
296 for (uint32 i=0; i < nbColliderEntities; i++) {
297
298 Collider* collider = mWorld.mCollidersComponents.getCollider(colliderEntities[i]);
299
300 mWorld.mCollisionDetection.askForBroadPhaseCollisionCheck(collider);
301 }
302}
303
304// Return true if a point is inside the collision body
305/// This method returns true if a point is inside any collision shape of the body

Callers 2

Calls 2

sizeMethod · 0.45
getColliderMethod · 0.45

Tested by

no test coverage detected