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

Method teardownAllSceneQuery

physx/source/physx/src/NpShapeManager.cpp:258–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void NpShapeManager::teardownAllSceneQuery(SceneQueryManager& sqManager, const PxRigidActor& actor)
259{
260 NpShape*const *shapes = getShapes();
261 const PxU32 nbShapes = getNbShapes();
262
263 if(isSqCompound())
264 {
265 const PxType actorType = actor.getConcreteType();
266 const bool isDynamic = actorType == PxConcreteType::eRIGID_DYNAMIC || actorType == PxConcreteType::eARTICULATION_LINK;
267 sqManager.removeCompoundActor(mSqCompoundId, isDynamic);
268 for(PxU32 i=0;i<nbShapes;i++)
269 {
270 setPrunerData(i, SQ_INVALID_PRUNER_DATA);
271 }
272 mSqCompoundId = INVALID_PRUNERHANDLE;
273 return;
274 }
275
276 for(PxU32 i=0;i<nbShapes;i++)
277 {
278 if(isSceneQuery(*shapes[i]))
279 sqManager.removePrunerShape(INVALID_PRUNERHANDLE, getPrunerData(i));
280
281 setPrunerData(i, SQ_INVALID_PRUNER_DATA);
282 }
283}
284
285void NpShapeManager::markAllSceneQueryForUpdate(SceneQueryManager& sqManager, const PxRigidActor& actor)
286{

Callers 3

NpScene.cppFile · 0.80
removeActorTFunction · 0.80

Calls 6

getNbShapesFunction · 0.85
isSqCompoundFunction · 0.85
isSceneQueryFunction · 0.85
removeCompoundActorMethod · 0.80
removePrunerShapeMethod · 0.80
getConcreteTypeMethod · 0.45

Tested by

no test coverage detected