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
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
Name | Description | |
---|---|---|
Damp(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. | |
Damp(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. | |
Damp(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. |
Fields
Name | Description | |
---|---|---|
kNegligibleResidual | Standard residual |
See Also