Return a pointer to a body
| 160 | |
| 161 | // Return a pointer to a body |
| 162 | RP3D_FORCE_INLINE Body* BodyComponents::getBody(Entity bodyEntity) { |
| 163 | |
| 164 | assert(mMapEntityToComponentIndex.containsKey(bodyEntity)); |
| 165 | |
| 166 | return mBodies[mMapEntityToComponentIndex[bodyEntity]]; |
| 167 | } |
| 168 | |
| 169 | // Return the array of colliders of a body |
| 170 | RP3D_FORCE_INLINE const Array<Entity>& BodyComponents::getColliders(Entity bodyEntity) const { |
nothing calls this directly
no test coverage detected