SmoothCD for ease-in / ease-out smoothing Based on Game Programming Gems 4 Chapter 1.10

Namespace: JigLibX.Physics
Assembly: JigLibX (in JigLibX.dll) Version: 0.3.1.0

Syntax

C#
public static void SmoothCD(
	ref Vector3 val,
	ref Vector3 valRate,
	float timeDelta,
	Vector3 to,
	float smoothTime
)
Visual Basic
Public Shared Sub SmoothCD ( _
	ByRef val As Vector3, _
	ByRef valRate As Vector3, _
	timeDelta As Single, _
	to As Vector3, _
	smoothTime As Single _
)
Visual C++
public:
static void SmoothCD(
	Vector3% val, 
	Vector3% valRate, 
	float timeDelta, 
	Vector3 to, 
	float smoothTime
)

Parameters

val
Type: Vector3%
in/out: value to be smoothed
valRate
Type: Vector3%
in/out: rate of change of the value
timeDelta
Type: System..::..Single
in: time interval
to
Type: Vector3
in: the target value
smoothTime
Type: System..::..Single
in: timescale for smoothing

See Also