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

Method preFilter

physx/samples/samplebridges/SampleBridgesCCT.cpp:188–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188PxQueryHitType::Enum SampleBridges::preFilter(const PxFilterData& filterData, const PxShape* shape, const PxRigidActor* actor, PxHitFlags& queryFlags)
189{
190#ifdef PLATFORMS_AS_OBSTACLES
191 const char* actorName = shape->getActor()->getName();
192 if(actorName==gPlatformName)
193 return PxQueryHitType::eNONE;
194#endif
195
196 return PxQueryHitType::eBLOCK;
197}
198
199PxQueryHitType::Enum SampleBridges::postFilter(const PxFilterData& filterData, const PxQueryHit& hit)
200{

Callers

nothing calls this directly

Calls 2

getNameMethod · 0.45
getActorMethod · 0.45

Tested by

no test coverage detected