followState

fnfloat followState(ref float weight, bool target, float speed) @trusted @safe nothrow @nogc

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