Cinemachine
DamperDamp Method (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.
Namespace: Cinemachine.Utility
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static Vector3 Damp( Vector3 initial, float dampTime, float deltaTime )
Cinemachine.Utility.Damper.Damp = function(initial, dampTime, deltaTime);
Parameters
- initial
- Type: Vector3
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: Vector3The damped amount. This will be the original amount scaled by a value between 0 and 1.
See Also