Skip to main content

Module springs

Module springs 

Source
Expand description

Spring-damper physics.

Used for camera following, glyph position settling, UI element animation, and any value that should approach a target with physical feel.

Structs§

ConstrainedSpring
A spring with configurable position clamping constraints.
CoupledOscillators
A bank of N coupled oscillators — each oscillator influences its neighbors.
DistanceConstraint
Maintains a target distance between two points, with spring-based correction.
PinConstraint
Pins a point to a fixed world-space position.
Spring2D
A 2-D spring (two independent SpringDampers sharing the same parameters).
Spring3D
A 3-D spring. Also exported as SpringDamper3 for camera API compatibility.
SpringChain
A chain of N particles connected by spring-based distance constraints.
SpringDamper
A spring-damper system that tracks a scalar value toward a target.
SpringNetwork
A general graph of nodes connected by spring edges.
VerletCloth
A 2D grid of Verlet points connected by distance constraints.
VerletPoint
A single Verlet-integrated point with optional pin.

Type Aliases§

SpringDamper3
Alias used by the camera system.