Contents

applyAngularImpulse(_:relativeTo:)

Applies an angular (torque) impulse to the physics body at its center of mass.

Declaration

@MainActor @preconcurrency func applyAngularImpulse(_ impulse: SIMD3<Float>, relativeTo referenceEntity: Entity?)

Parameters

  • impulse:

    An angular impulse in kilogram square meters per second.

  • referenceEntity:

    The reference entity that defines the coordinate space in which impulse is defined.

See Also

Applying impulses