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

Method updateCollider

src/systems/BroadPhaseSystem.cpp:117–126  ·  view source on GitHub ↗

Update the broad-phase state of a single collider

Source from the content-addressed store, hash-verified

115
116// Update the broad-phase state of a single collider
117void 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
129void BroadPhaseSystem::updateColliders() {

Callers 2

updateBroadPhaseStateMethod · 0.45

Calls 1

containsKeyMethod · 0.80

Tested by

no test coverage detected