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.
| 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. |
| 194 | void 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 |
| 206 | void BroadPhaseSystem::computeOverlappingPairs(MemoryManager& memoryManager, Array<Pair<int32, int32>>& overlappingNodes) { |
no test coverage detected