Instance Method

applyLinearImpulse(_:relativeTo:)

Applies an impulse to the physics body at its center of mass.

Declaration

func applyLinearImpulse(_ impulse: SIMD3<Float>, relativeTo referenceEntity: Entity?)

Parameters

impulse

An impulse in newton seconds.

referenceEntity

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

See Also

Applying Impulses

func applyAngularImpulse(SIMD3<Float>, relativeTo: Entity?)

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

func applyImpulse(SIMD3<Float>, at: SIMD3<Float>, relativeTo: Entity?)

Applies an impulse to the physics body at the specified position.