| 2273 | } |
| 2274 | |
| 2275 | void NpScene::flushQueryUpdates() |
| 2276 | { |
| 2277 | // DS: how do we profile const methods?????? |
| 2278 | PX_PROFILE_ZONE("API.flushQueryUpdates", getContextId()); |
| 2279 | NP_READ_CHECK(this); |
| 2280 | PX_SIMD_GUARD; |
| 2281 | |
| 2282 | if (getSimulationStage() != Sc::SimulationStage::eCOMPLETE) |
| 2283 | { |
| 2284 | Ps::getFoundation().error(PxErrorCode::eDEBUG_WARNING, __FILE__, __LINE__, |
| 2285 | "PxScene::flushQueryUpdates(): This call is not allowed while the simulation is running. Call will be ignored"); |
| 2286 | return; |
| 2287 | } |
| 2288 | |
| 2289 | mSQManager.flushUpdates(); |
| 2290 | } |
| 2291 | |
| 2292 | /* |
| 2293 | Replaces finishRun() with the addition of appropriate thread sync(pulled out of PhysicsThread()) |
nothing calls this directly
no test coverage detected