Remove all the colliders
| 198 | |
| 199 | // Remove all the colliders |
| 200 | void Body::removeAllColliders() { |
| 201 | |
| 202 | // Look for the collider that contains the collision shape in parameter. |
| 203 | // Note that we need to copy the array of collider entities because we are deleting them in a loop. |
| 204 | const Array<Entity> collidersEntities = mWorld.mBodyComponents.getColliders(mEntity); |
| 205 | for (uint32 i=0; i < collidersEntities.size(); i++) { |
| 206 | |
| 207 | removeCollider(mWorld.mCollidersComponents.getCollider(collidersEntities[i])); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | // Return the current position and orientation |
| 212 | /** |
no test coverage detected