Return the corresponding type of event for this overlapping pair
| 58 | |
| 59 | // Return the corresponding type of event for this overlapping pair |
| 60 | OverlapCallback::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 |
| 70 | OverlapCallback::CallbackData::CallbackData(Array<ContactPair>& contactPairs, Array<ContactPair>& lostContactPairs, bool onlyReportTriggers, PhysicsWorld& world) |