Damper.Damp Method (Single, Single, Single)

Cinemachine

DamperDamp Method (Single, Single, 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 float Damp(
	float initial,
	float dampTime,
	float deltaTime
)
Cinemachine.Utility.Damper.Damp = function(initial, dampTime, deltaTime);

Parameters

initial
Type: SystemSingle
The amount that will be damped
dampTime
Type: SystemSingle
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: Single
The damped amount. This will be the original amount scaled by a value between 0 and 1.
See Also