UxrInterpolator.SmoothDampPosition Method

Smooths a position value using the last position, new position 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 Vector3 SmoothDampPosition(
	Vector3 oldPos,
	Vector3 newPos,
	float smooth
)

Parameters

 

oldPos
Type: Vector3
Old position
newPos
Type: Vector3
New position
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: Vector3
Smoothed position value

See Also

Reference

UxrInterpolator Class
UltimateXR.Animation.Interpolation Namespace