Contents

force(target:position:velocity:)

Calculates the force upon the spring given a current position, target, and velocity amount of change.

Declaration

func force<V>(target: V, position: V, velocity: V) -> V where V : VectorArithmetic

Discussion

This value is in units of the vector type per second squared.

See Also

Calculating forces and durations