CParticleEvolver LimitDistance

From PopcornFX
Jump to: navigation, search

LimitDistance evolver Last update: v1.9.0 - Main page : Particle evolvers Particle evolvers


The LimitDistance evolver is a more general version of the containment evolver. It allows to keep particles inside a confined area defined by a shape.


LimitDistance  evolver Node properties

Field name Default value Description
LimitDistance  evolver General
DistanceSampler <none> Shape sampler to be used for the distance computation
Preset None
  • None : Leaves your own values.
  • SoftOnSurface : Particles get softly projected on the shape's surface.
  • ProjectionOnSurface : Deprecated. Does the same thing as the projection evolver. You should use the projection evolver instead.
  • LimitInsideShape : Keeps particles freely roaming inside the shape. Prevents them from going outside.
  • LimitOutsideShape : Keeps particles freely roaming outside the shape. Prevents them from going inside.
LimitDistance  evolver Soft limits
DistancesSoftness 5.0 Distance above 'MaxDistance' or below 'MinDistance' where the particles will start being gently pushed back towards the shape.
MaxDistance 0.0 Max distance outside the shape before the particles start getting pushed back towards its surface.
MinDistance -infinity Min distance inside the shape before the particles start getting pushed back towards its surface.
LimitDistance  evolver Hard limits
HardMaxDistance +infinity Particles outside the shape won't be able to go further than this distance from its surface.
HardMinDistance -infinity Particles inside the shape won't be able to go deeper than this distance from its surface.
LimitDistance  evolver Advanced
ParticleSamplingDistance 0.01 Should be a small nonzero value. Used for finite-differencing the shape's distance-field and finding its gradient. You probably don't want to change this unless you know what you're doing and want to fix potential artifacts.
LimitDistance  evolver Field customization
PositionField "Position" If this field is declared as a <float3>, it will be used as the particle position.
LimitDistance evolver properties


LimitDistance evolver Auto-fields

The spawner evolver automatically creates, if they don't exist, the following particle fields:

Name Type Footprint TransformMode self access to field
Position float3 16 bytes none read/write