Unigine.ParticlesField Class
Inherits from: | Node |
This is a base class for all Particles Fields and incorporates their common characteristics. ParticlesFieldSpacer and ParticlesFieldDeflector classes derive from it.
Particles Fields can be used to cut particles out from a certain volume (spacer-fields that can be used, for example, to avoid rendering of rain inside a car) or to deflect particles making them bounce from the field's surface (deflector).
A Particles Fields will affect a Particles System only if they interact with each other. You can control interaction of fields and particles via a separate mask (Particles Field). You can also switch between interaction modes to choose if particles should interact on a contact of the field either with particle's center position or with its bounding box.
ParticlesField Class
Enums
INTERACT_PARTICLE_MODE#
Interaction modes for the Particles Field.Name | Description |
---|---|
POSITION = 0 | Position mode. Interaction between the Particles Field and a particle takes place if the position of the particle's center comes into contact (intersection) with the field (its volume or surface in case of a deflector field). |
BOUND = 1 | Bound mode. Interaction between the Particles Field and a particle takes place if the bounding box of the particle comes into contact (intersection) with the field (its volume or surface in case of a deflector field). |
NUM_INTERACT_PARTICLE_MODES = 2 | Number of interaction modes for Particles Fields. |