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

Method markAllSceneQueryForUpdate

physx/source/physx/src/NpShapeManager.cpp:285–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void NpShapeManager::markAllSceneQueryForUpdate(SceneQueryManager& sqManager, const PxRigidActor& actor)
286{
287 if(isSqCompound())
288 {
289 const PxType actorType = actor.getConcreteType();
290 const bool isDynamic = actorType == PxConcreteType::eRIGID_DYNAMIC || actorType == PxConcreteType::eARTICULATION_LINK;
291 sqManager.updateCompoundActor(mSqCompoundId, actor.getGlobalPose(), isDynamic);
292 return;
293 }
294
295 const PxU32 nbShapes = getNbShapes();
296
297 for(PxU32 i=0;i<nbShapes;i++)
298 {
299 const PrunerData data = getPrunerData(i);
300 if(data!=SQ_INVALID_PRUNER_DATA)
301 sqManager.markForUpdate(INVALID_PRUNERHANDLE, data);
302 }
303}
304
305Sq::PrunerData NpShapeManager::findSceneQueryData(const NpShape& shape) const
306{

Callers 2

setGlobalPoseMethod · 0.80

Calls 6

isSqCompoundFunction · 0.85
getNbShapesFunction · 0.85
updateCompoundActorMethod · 0.80
markForUpdateMethod · 0.80
getConcreteTypeMethod · 0.45
getGlobalPoseMethod · 0.45

Tested by

no test coverage detected