| 2238 | } |
| 2239 | |
| 2240 | void 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 | |
| 2255 | void NpScene::processCallbacks(physx::PxBaseTask* continuation) |
| 2256 | { |
no test coverage detected