SmoothDamp<T>.Update

Method in SmoothDamp<T>

Declaration

public abstract T Update(T target)

Description

Smoothes the current value to the target value.

Parameters

targetThe target value.

Returns

TThe new current value.

Overload

Declaration

public abstract T Update(T target, float deltaTime)

Description

Smoothes the current value to the target value with the given delta time.

Parameters

targetThe target value.
deltaTimeThe time since the last call to this function.

Returns

TThe new current value.