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

Method getCollider1

src/collision/OverlapCallback.cpp:40–42  ·  view source on GitHub ↗

Return a pointer to the first collider in contact

Source from the content-addressed store, hash-verified

38
39// Return a pointer to the first collider in contact
40Collider* OverlapCallback::OverlapPair::getCollider1() const {
41 return static_cast<Collider*>(mWorld.mCollidersComponents.getCollider(mContactPair.collider1Entity));
42}
43
44// Return a pointer to the second collider in contact
45Collider* OverlapCallback::OverlapPair::getCollider2() const {

Callers 3

onContactMethod · 0.45
onContactMethod · 0.45
onContactMethod · 0.45

Calls 1

getColliderMethod · 0.45

Tested by 1

onContactMethod · 0.36