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

Method getBody

include/reactphysics3d/components/BodyComponents.h:162–167  ·  view source on GitHub ↗

Return a pointer to a body

Source from the content-addressed store, hash-verified

160
161// Return a pointer to a body
162RP3D_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
170RP3D_FORCE_INLINE const Array<Entity>& BodyComponents::getColliders(Entity bodyEntity) const {

Callers

nothing calls this directly

Calls 1

containsKeyMethod · 0.80

Tested by

no test coverage detected