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

Method getBody2

src/collision/CollisionCallback.cpp:54–56  ·  view source on GitHub ↗

Return a pointer to the second body in contact

Source from the content-addressed store, hash-verified

52
53// Return a pointer to the second body in contact
54Body* CollisionCallback::ContactPair::getBody2() const {
55 return static_cast<Body*>(mWorld.mBodyComponents.getBody(mContactPair.body2Entity));
56}
57
58// Return a pointer to the first collider in contact (in body 1)
59Collider* CollisionCallback::ContactPair::getCollider1() const {

Callers

nothing calls this directly

Calls 1

getBodyMethod · 0.45

Tested by

no test coverage detected