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

Method getBody1

src/collision/OverlapCallback.cpp:50–52  ·  view source on GitHub ↗

Return a pointer to the first body in contact

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getBodyMethod · 0.45

Tested by

no test coverage detected