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

Method getCollider2

src/collision/OverlapCallback.cpp:45–47  ·  view source on GitHub ↗

Return a pointer to the second collider in contact

Source from the content-addressed store, hash-verified

43
44// Return a pointer to the second collider in contact
45Collider* OverlapCallback::OverlapPair::getCollider2() const {
46 return static_cast<Collider*>(mWorld.mCollidersComponents.getCollider(mContactPair.collider2Entity));
47}
48
49// Return a pointer to the first body in contact
50Body* OverlapCallback::OverlapPair::getBody1() const {

Callers 2

onContactMethod · 0.45
onContactMethod · 0.45

Calls 1

getColliderMethod · 0.45

Tested by 1

onContactMethod · 0.36