Niagara Analytical SDFs
Since there was no feature in Niagara to easily contain particles inside of an analytical shape I figured it would be great to make some Niagara functions and encapsulating modules in order to get this sorted. Analytical shapes are fully build from mathematical functions and are therefore very performant as opposed other collision techniques. The current version includes sphere, box, capsule and cylinder shapes, all easily configurable either through a module or used as a function within a custom module.
Ready made modules are available for:
- Collision
- Soft bounds
- SDF distance sampling
- SDF gradient sampling
The pack additionally comes with a Niagara function that takes care of resolving collision velocities which is needed when colliding with hard surfaces as to avoid intersection jitter and adjust the current velocities to flow along the surface.