Contents

initialVelocity

The initial velocity of the object attached to the spring.

Declaration

var initialVelocity: CGFloat { get set }

Discussion

Defaults to 0, which represents an unmoving object. Negative values represent the object moving away from the spring attachment point, positive values represent the object moving towards the spring attachment point.

See Also

Configuring Physical Attributes