applyImpulse(_:at:relativeTo:)
Applies an impulse to the physics body at the specified position.
Declaration
@MainActor @preconcurrency func applyImpulse(_ impulse: SIMD3<Float>, at position: SIMD3<Float>, relativeTo referenceEntity: Entity?)Parameters
- impulse:
An impulse in newton seconds.
- position:
The position at which to apply the impulse.
- referenceEntity:
The reference entity that defines the coordinate space in which
positionandimpulseare defined.