Contents

applyImpulse(_:)

Applies an impulse to the center of gravity of a physics body.

Declaration

func applyImpulse(_ impulse: CGVector)

Parameters

  • impulse:

    A vector that describes how much momentum was imparted in each dimension. The impulse is measured in Newton-seconds.

Discussion

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

See Also

Applying Forces and Impulses to a Physics Body