Update the broad-phase state of a single collider
| 115 | |
| 116 | // Update the broad-phase state of a single collider |
| 117 | void BroadPhaseSystem::updateCollider(Entity colliderEntity) { |
| 118 | |
| 119 | assert(mCollidersComponents.mMapEntityToComponentIndex.containsKey(colliderEntity)); |
| 120 | |
| 121 | // Get the index of the collider component in the array |
| 122 | const uint32 index = mCollidersComponents.mMapEntityToComponentIndex[colliderEntity]; |
| 123 | |
| 124 | // Update the collider component |
| 125 | updateCollidersComponents(index, 1); |
| 126 | } |
| 127 | |
| 128 | // Update the broad-phase state of all the enabled colliders |
| 129 | void BroadPhaseSystem::updateColliders() { |
no test coverage detected