Skip to main content

Module forces

Module forces 

Source
Expand description

Force fields applied to particles: gravity well, vortex, turbulence, wind zone, attractor/repulsor, drag, buoyancy. Supports force composition and tag masking.

Structs§

AttractorRepulsor
Simple point attractor or repulsor (alias over GravityWell with cleaner API).
BuoyancyField
Buoyancy force: applies upward lift inversely proportional to particle density.
DragField
Linear drag: decelerates particles proportional to their speed.
ForceComposite
A group of force fields evaluated together with a blend mode.
ForceDebugSample
Debug information about forces acting on a particle at a given point.
ForceField
A single force field entry in the world, combining a field type with metadata.
ForceFieldId
ForceFieldWorld
Global registry for all force fields active in the world.
ForcePresets
Convenience constructors for common force-field scenarios.
GravityWell
A gravitational well that pulls (or repels) particles toward a point.
TurbulenceField
Pseudo-random turbulence using a value-noise approach on a 3D grid.
VortexField
A spinning vortex that imparts tangential force around an axis.
WindZone
A directional wind zone, optionally bounded to a box region.

Enums§

AttractorMode
FalloffMode
How a force field’s strength falls off over distance.
ForceBlendMode
Blend mode when combining multiple force fields at the same location.
ForceFieldKind
The concrete force implementation.
TagMask
Determines which particles a force field affects.