Skip to main content

Module fields

Module fields 

Source
Expand description

Force fields — continuous spatial functions that apply forces to glyphs.

§Field taxonomy

  • Simple fields: gravity, flow, vortex, repulsion, heat, damping
  • Math fields: apply a MathFunction to a glyph property
  • Strange attractors: drive motion along attractor trajectories
  • Composed fields: combine multiple fields with blend operators
  • Animated fields: fields whose parameters change over time

All fields implement force_at(pos, mass, charge, t) → Vec3, making them interchangeable in the scene graph field manager.

Structs§

AnimatedField
A field whose strength or center animates over time.
AnimationKey
FieldComposer
Combines multiple fields with a blend operator.
FieldLayer
FieldPresets
Factory methods for common in-game force field configurations.
FieldSampler
Samples a field onto a 2D grid for visualization.

Enums§

Falloff
How field strength decreases with distance.
FieldBlend
FieldTarget
Which property of a glyph a MathField modifies.
ForceField
A spatial force that acts on glyphs within its region of influence.

Functions§

falloff_factor