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
Members
void setInteractParticleMode ( int mode ) #
Sets a new interaction mode for the Particles Field. Interaction can be triggered on a contact of the field either with particle's center position or with its bounding box.Arguments
- int mode - New interaction mode to be set. One of the INTERACT_PARTICLE_MODE* values.
int getInteractParticleMode ( ) #
Returns the current interaction mode for the Particles Field. Interaction can be triggered on a contact of the field either with particle's center position or with its bounding box.Return value
Current interaction mode of the Particles Field. One of the INTERACT_PARTICLE_MODE* values.void setParticlesFieldMask ( int mask ) #
Sets a new Particles Field bit mask enabling you to control interactions with particles. The Particles Field will interact with a Particles System if they both have matching Particles Field masks (one bit at least).Arguments
- int mask - New mask to be set for the field. Integer, each bit of which is a mask.
int getParticlesFieldMask ( ) #
Returns the current Particles Field bit mask enabling you to control interactions with particles. The Particles Field will interact with a Particles System if they both have matching Particles Field masks (one bit at least).Return value
Current mask of the field. Integer, each bit of which is a mask.void setViewportMask ( int mask ) #
Sets a new Viewport mask enabling you to control rendering of the field. The Particles Field will be rendered in the viewport if it has a matching Viewport mask (one bit at least).Arguments
- int mask - New Viewport mask to be set for the field. Integer, each bit of which is a mask.
int getViewportMask ( ) #
Returns the current Viewport mask enabling you to control rendering of the field. The Particles Field will be rendered in the viewport if it has a matching Viewport mask (one bit at least).Return value
Current Viewport mask of the field. Integer, each bit of which is a mask.The information on this page is valid for UNIGINE 2.20 SDK.