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

Method getCollider

src/body/Body.cpp:138–145  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

136* @return The const pointer to the requested collider
137*/
138const 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/**

Callers 12

getCollider1Method · 0.45
getCollider2Method · 0.45
getCollider1Method · 0.45
getCollider2Method · 0.45
removeAllCollidersMethod · 0.45
setIsActiveMethod · 0.45
testPointInsideMethod · 0.45
raycastMethod · 0.45
getAABBMethod · 0.45
setProfilerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected