Inc
This function can be used to move a value steadily towards a target value at a specified rate. The return value will stop changing when it reaches the target value.
Syntax
- static float Inc(const float target, float current, const float increments)
Parameters
- target: the target value to move towards.
- current: the current value to start at.
- increments: units to move towards the target value.
Returns
Returns the incremented value.