MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / run

Method run

deps/physx/physx/source/physx/src/NpScene.cpp:2240–2253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2238}
2239
2240void NpContactCallbackTask::run()
2241{
2242 physx::PxSimulationEventCallback* callback = mScene->getSimulationEventCallback();
2243 if(!callback)
2244 return;
2245
2246 mScene->lockRead();
2247 for(uint32_t i=0; i<mNbContactPairHeaders; ++i)
2248 {
2249 const physx::PxContactPairHeader& pairHeader = mContactPairHeaders[i];
2250 callback->onContact(pairHeader, pairHeader.pairs, pairHeader.nbPairs);
2251 }
2252 mScene->unlockRead();
2253}
2254
2255void NpScene::processCallbacks(physx::PxBaseTask* continuation)
2256{

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