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

Method reportTriggers

src/systems/CollisionDetectionSystem.cpp:1745–1757  ·  view source on GitHub ↗

Report all triggers to the user

Source from the content-addressed store, hash-verified

1743
1744// Report all triggers to the user
1745void CollisionDetectionSystem::reportTriggers(EventListener& eventListener, Array<ContactPair>* contactPairs, Array<ContactPair>& lostContactPairs) {
1746
1747 RP3D_PROFILE("CollisionDetectionSystem::reportTriggers()", mProfiler);
1748
1749 // If there are contacts
1750 if (contactPairs->size() + lostContactPairs.size() > 0) {
1751
1752 OverlapCallback::CallbackData callbackData(*contactPairs, lostContactPairs, true, *mWorld);
1753
1754 // Call the callback method to report the overlapping shapes
1755 eventListener.onTrigger(callbackData);
1756 }
1757}
1758
1759// Report all contacts for debug rendering
1760void CollisionDetectionSystem::reportDebugRenderingContacts(Array<ContactPair>* contactPairs, Array<ContactManifold>* manifolds, Array<ContactPoint>* contactPoints, Array<ContactPair>& lostContactPairs) {

Callers

nothing calls this directly

Calls 2

onTriggerMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected