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

Method getEventType

src/collision/CollisionCallback.cpp:69–76  ·  view source on GitHub ↗

Return the corresponding type of event for this contact pair

Source from the content-addressed store, hash-verified

67
68// Return the corresponding type of event for this contact pair
69CollisionCallback::ContactPair::EventType CollisionCallback::ContactPair::getEventType() const {
70
71 if (mIsLostContactPair) return EventType::ContactExit;
72
73 if (mContactPair.collidingInPreviousFrame) return EventType::ContactStay;
74
75 return EventType::ContactStart;
76}
77
78// Constructor
79CollisionCallback::CallbackData::CallbackData(Array<reactphysics3d::ContactPair>* contactPairs, Array<ContactManifold>* manifolds,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected