Table of Contents

Smooth

Methods
T Smooth(SmoothingSettings settings, T currentValue, T targetValue, double time)

Smoothly lerps the current value towards the target value.

Parameters
Type Name Description
SmoothingSettings settings

Settings used to define smoothing parameters

T currentValue

The current value

T targetValue

The target value which needs to be smoothly reached

double time

Current time (eg. NetworkTime.TimeAsDouble)

Returns
Type Description
T

New value which is smoothly lerped towards the target value