update(value:velocity:target:deltaTime:)
Updates the current value and velocity of a spring.
Declaration
func update<V>(value: inout V, velocity: inout V, target: V, deltaTime: TimeInterval) where V : VectorArithmeticParameters
- value:
The current value of the spring.
- velocity:
The current velocity of the spring.
- target:
The target that
valueis moving towards. - deltaTime:
The amount of time that has passed since the spring was at the position specified by
value.