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

Method getBody2

src/collision/OverlapCallback.cpp:55–57  ·  view source on GitHub ↗

Return a pointer to the second body in contact

Source from the content-addressed store, hash-verified

53
54// Return a pointer to the second body in contact
55Body* OverlapCallback::OverlapPair::getBody2() const {
56 return static_cast<Body*>(mWorld.mBodyComponents.getBody(mContactPair.body2Entity));
57}
58
59// Return the corresponding type of event for this overlapping pair
60OverlapCallback::OverlapPair::EventType OverlapCallback::OverlapPair::getEventType() const {

Callers

nothing calls this directly

Calls 1

getBodyMethod · 0.45

Tested by

no test coverage detected