O'Reilly logo

Learning Physics Modeling with PhysX by Krishna Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Collision filtering

Particles can be selectively configured to collide with any PhysX object. Depending on our requirement, we can ignore the collision of particles with a particular type of actor, whether they are static or dynamic. This can be done to avoid unnecessary performance overhead or to avoid undesired collisions.

For enabling particle-based collision filtering, the PxParticleBase::setSimulationFilterData() function is called. This requires a parameter of the PxFilterData type, which is a user-definable data that gets passed into the collision filtering shader and/or call-back.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required