Return the corresponding type of event for this contact pair
| 67 | |
| 68 | // Return the corresponding type of event for this contact pair |
| 69 | CollisionCallback::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 |
| 79 | CollisionCallback::CallbackData::CallbackData(Array<reactphysics3d::ContactPair>* contactPairs, Array<ContactManifold>* manifolds, |
nothing calls this directly
no outgoing calls
no test coverage detected