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

Method getEventType

src/collision/OverlapCallback.cpp:60–67  ·  view source on GitHub ↗

Return the corresponding type of event for this overlapping pair

Source from the content-addressed store, hash-verified

58
59// Return the corresponding type of event for this overlapping pair
60OverlapCallback::OverlapPair::EventType OverlapCallback::OverlapPair::getEventType() const {
61
62 if (mIsLostOverlapPair) return EventType::OverlapExit;
63
64 if (mContactPair.collidingInPreviousFrame) return EventType::OverlapStay;
65
66 return EventType::OverlapStart;
67}
68
69// CollisionCallbackData Constructor
70OverlapCallback::CallbackData::CallbackData(Array<ContactPair>& contactPairs, Array<ContactPair>& lostContactPairs, bool onlyReportTriggers, PhysicsWorld& world)

Callers 1

onContactMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected