Return a const pointer to a given collider of the body * @param colliderIndex Index of a Collider of the body * @return The const pointer to the requested collider */
| 136 | * @return The const pointer to the requested collider |
| 137 | */ |
| 138 | const Collider* Body::getCollider(uint32 colliderIndex) const { |
| 139 | |
| 140 | assert(colliderIndex < getNbColliders()); |
| 141 | |
| 142 | Entity colliderEntity = mWorld.mBodyComponents.getColliders(mEntity)[colliderIndex]; |
| 143 | |
| 144 | return mWorld.mCollidersComponents.getCollider(colliderEntity); |
| 145 | } |
| 146 | |
| 147 | // Return a pointer to a given collider of the body |
| 148 | /** |
no outgoing calls
no test coverage detected