| 2194 | } |
| 2195 | |
| 2196 | void 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 | |
| 2211 | void NpScene::processCallbacks(physx::PxBaseTask* continuation) |
| 2212 | { |
no test coverage detected