UxrInterpolator.SmoothDamp Method
Smooths a float value using the previous value, new value and a smooth value between [0.0, 1.0].
Namespace: UltimateXR.Animation.Interpolation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static float SmoothDamp(
float oldValue,
float newValue,
float smooth
)
Parameters
- oldValue
- Type: System.Single
Old value - newValue
- Type: System.Single
New value - smooth
- Type: System.Single
Smooth value [0.0, 1.0] where 0.0 is no smoothing and 1.0 is maximum smoothing
Return Value
Type: Single
Smoothed value
See Also
Reference
UxrInterpolator Class
UltimateXR.Animation.Interpolation Namespace