Damper.Damp Method (Vector3, Vector3, Single)

Cinemachine

DamperDamp Method (Vector3, Vector3, Single)

Get a damped version of a quantity. This is the portion of the quantity that will take effect over the given time.

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static Vector3 Damp(
	Vector3 initial,
	Vector3 dampTime,
	float deltaTime
)
Cinemachine.Utility.Damper.Damp = function(initial, dampTime, deltaTime);

Parameters

initial
Type: Vector3
The amount that will be damped
dampTime
Type: Vector3
The rate of damping. This is the time it would take to reduce the original amount to a negligible percentage
deltaTime
Type: SystemSingle
The time over which to damp

Return Value

Type: Vector3
The damped amount. This will be the original amount scaled by a value between 0 and 1.
See Also