followState
fn
float followState(ref float weight, bool target, float speed) @trusted @safe nothrow @nogcMoves weight by ref toward the target state by speed and returns the updated value.