Ask the broad-phase to test again the collision shapes of the body for collision (as if the body has moved).
| 289 | // Ask the broad-phase to test again the collision shapes of the body for collision |
| 290 | // (as if the body has moved). |
| 291 | void 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 |
no test coverage detected