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

Method addMovedCollider

src/systems/BroadPhaseSystem.cpp:194–203  ·  view source on GitHub ↗

Add a collider in the array of colliders that have moved in the last simulation step and that need to be tested again for broad-phase overlapping.

Source from the content-addressed store, hash-verified

192// Add a collider in the array of colliders that have moved in the last simulation step
193// and that need to be tested again for broad-phase overlapping.
194void BroadPhaseSystem::addMovedCollider(int broadPhaseID, Collider* collider) {
195
196 assert(broadPhaseID != -1);
197
198 // Store the broad-phase ID into the array of shapes that have moved
199 mMovedShapes.add(broadPhaseID);
200
201 // Notify that the overlapping pairs where this shape is involved need to be tested for overlap
202 mCollisionDetection.notifyOverlappingPairsToTestOverlap(collider);
203}
204
205// Compute all the overlapping pairs of collision shapes
206void BroadPhaseSystem::computeOverlappingPairs(MemoryManager& memoryManager, Array<Pair<int32, int32>>& overlappingNodes) {

Callers 1

Calls 2

addMethod · 0.45

Tested by

no test coverage detected