Curve
This function returns an value interpolated between a current and target value.
Syntax
- static float Curve(const float target, const float current, const float divisions)
Parameters
- target: the value being moved towards.
- current: the current value.
- divisions: the number to divide the difference by.
Returns
Returns an interpolated value.