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

Method preFilter

physx/samples/samplelargeworld/SampleLargeWorldCCT.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57PxQueryHitType::Enum SampleLargeWorld::preFilter(const PxFilterData& filterData, const PxShape* shape, const PxRigidActor* actor, PxHitFlags& queryFlags)
58{
59 PX_UNUSED(actor);
60 const char* actorName = shape->getActor()->getName();
61 if(actorName==gDynamic)
62 return PxQueryHitType::eNONE;
63
64 return PxQueryHitType::eBLOCK;
65}
66
67PxQueryHitType::Enum SampleLargeWorld::postFilter(const PxFilterData& filterData, const PxQueryHit& hit)
68{

Callers

nothing calls this directly

Calls 3

PX_UNUSEDFunction · 0.85
getNameMethod · 0.45
getActorMethod · 0.45

Tested by

no test coverage detected