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

Method getBody1

src/collision/CollisionCallback.cpp:49–51  ·  view source on GitHub ↗

Return a pointer to the first body in contact

Source from the content-addressed store, hash-verified

47
48// Return a pointer to the first body in contact
49Body* CollisionCallback::ContactPair::getBody1() const {
50 return static_cast<Body*>(mWorld.mBodyComponents.getBody(mContactPair.body1Entity));
51}
52
53// Return a pointer to the second body in contact
54Body* CollisionCallback::ContactPair::getBody2() const {

Callers

nothing calls this directly

Calls 1

getBodyMethod · 0.45

Tested by

no test coverage detected