MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / run

Method run

physx/source/physx/src/NpScene.cpp:2196–2209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2194}
2195
2196void NpContactCallbackTask::run()
2197{
2198 physx::PxSimulationEventCallback* callback = mScene->getSimulationEventCallback();
2199 if(!callback)
2200 return;
2201
2202 mScene->lockRead();
2203 for(uint32_t i=0; i<mNbContactPairHeaders; ++i)
2204 {
2205 const physx::PxContactPairHeader& pairHeader = mContactPairHeaders[i];
2206 callback->onContact(pairHeader, pairHeader.pairs, pairHeader.nbPairs);
2207 }
2208 mScene->unlockRead();
2209}
2210
2211void NpScene::processCallbacks(physx::PxBaseTask* continuation)
2212{

Callers 2

aFunction · 0.45
KnFunction · 0.45

Calls 4

lockReadMethod · 0.80
unlockReadMethod · 0.80
onContactMethod · 0.45

Tested by

no test coverage detected