Damper Class

Cinemachine

Damper Class

Utility to perform realistic damping of float or Vector3 values. The algorithm is based on exponentially decaying the delta until only a negligible amount remains.
Inheritance Hierarchy
SystemObject  Cinemachine.UtilityDamper

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static class Damper
Cinemachine.Utility.Damper = function();

Type.createClass(
	'Cinemachine.Utility.Damper');

The Damper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDamp(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.
Public methodStatic memberDamp(Vector3, Single, Single)
Get a damped version of a quantity. This is the portion of the quantity that will take effect over the given time.
Public methodStatic memberDamp(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.
Top
Fields
  NameDescription
Public fieldStatic memberkNegligibleResidual
Standard residual
Top
See Also