Contents

applyAngularImpulse(_:)

Applies an impulse that imparts angular momentum to an object.

Declaration

func applyAngularImpulse(_ impulse: CGFloat)

Parameters

  • impulse:

    The magnitude of the impulse. The impulse is measured in Newton-seconds.

Discussion

This method affects the body’s angular velocity without changing the body’s linear velocity.

See Also

Applying Forces and Impulses to a Physics Body