followState

fnfloat followState(ref float weight, bool target, float speed)

Moves weight by ref toward the target state by speed and returns the updated value.