The Basic FS module provides several kinds of field samplers. Field samplers are used to create forces which move particles along a particular way. Currently Basic FS module contains Attractor, Jet, Noise, Vortex and Wind field samplers. User can combine these field samplers to achieve desired behaviour.
All field samplers share some properties to allow setting up particular interaction mode between them and particles. These properties are Field Drag Coefficient and Field Weight.
If Field Drag Coefficient is 0, then:
newParticleVelocity = fieldWeight * fieldVelocity + (1 - fieldWeight) * oldParticleVelocity;
(so it’s just a linear blending of field velocity and old particle velocity) – this is so called direct velocity mode.
If Field Drag Coefficient is > 0, then:
newParticleVelocity = dragWeight * fieldVelocity + (1 - dragWeight) * oldParticleVelocity, where dragWeight = min(fieldWeight * fieldDragCoeff * elapsedTime / particleMass, 1)
This formula simulates some simple drag force from real physics (this is so called drag force mode – it usually produce some time delay for changing particle velocity and also it should vary with particle mass)
Attractor Field Sampler acts as a sphere creating a force which attracts particles to this sphere. These are the parameters for this type of effect:
Jet Field Sampler Actor affects the Turbulence grid’s velocities and causes the particles to be pushed in a single direction. Outside the grid, jets act completely differently. It acts directly on any particles and moves them around in a torus shape. Some of important parameters of a Jet Field Sampler are:
Noise Field Sampler creates noise in a volume represented by a box. Noise affects particles by applying force or velocity. There are several important parameters to setup noise:
Vortex Field Sampler has a capsule shape. Particles that are inside this shape receive propulsion with a force propotional to a distance between a particle and the capsule axis. There are three components of the velocity - rotational, radial and lift.
Wind Field Sampler creates a force which represents wind influencing the particles. This field sampler has no shape or volume, hence it affects all particles in case no filtering is set. Wind Field Sampler is able to create a variable direction and strength of wind force. These settings are avaiable through asset properties such as Field Direction, Field Direction Deviation Angle, Field Direction Oscillation Period, Field Strength, Field Strength Deviation Percentage, Field Strength Oscillation Period.