src/systems/CollisionDetectionSystem.cpp
void CollisionDetectionSystem::reportDebugRenderingContacts(Array<ContactPair>* contactPairs, Array<ContactManifold>* manifolds, Array<ContactPoint>* contactPoints, Array<ContactPair>& lostContactPairs) {

    RP3D_PROFILE("CollisionDetectionSystem::reportDebugRenderingContacts()", mProfiler);

    // If there are contacts
    if (contactPairs->size() + lostContactPairs.size() > 0) {

        CollisionCallback::CallbackData callbackData(contactPairs, manifolds, contactPoints, lostContactPairs, *mWorld);

        // Call the callback method to report the contacts
        mWorld->mDebugRenderer.onContact(callbackData);
    }
}
// Report all contacts for debug rendering
Report all contacts for debug rendering
Report all contacts for debug rendering
void CollisionDetectionSystem::reportDebugRenderingContacts(Array<ContactPair>* contactPairs, Array<ContactManifold>* manifolds, Array<ContactPoint>* contactPoints, Array<ContactPair>& lostContactPairs) {
    RP3D_PROFILE("CollisionDetectionSystem::reportDebugRenderingContacts()", mProfiler);
    if (contactPairs->size() + lostContactPairs.size() > 0) {
        CollisionCallback::CallbackData callbackData(contactPairs, manifolds, contactPoints, lostContactPairs, *mWorld);
        mWorld->mDebugRenderer.onContact(callbackData);
    }
}
void CollisionDetectionSystem :: reportDebugRenderingContacts ( Array < ContactPair > * contactPairs , Array < ContactManifold > * manifolds , Array < ContactPoint > * contactPoints , Array < ContactPair > & lostContactPairs ) { RP3D_PROFILE ( " " , mProfiler ) ; if ( contactPairs -> size ( ) + lostContactPairs . size ( ) > 0 ) { CollisionCallback :: CallbackData callbackData ( contactPairs , manifolds , contactPoints , lostContactPairs , * mWorld ) ; mWorld -> mDebugRenderer . onContact ( callbackData ) ; } }
Report all contacts for debug rendering
Report all contacts for debug rendering
// If there are contacts // Call the callback method to report the contacts