Contents

HasPhysicsBody

An interface that enables physics simulations based on the rules of Newtonian mechanics.

Declaration

@MainActor @preconcurrency protocol HasPhysicsBody : HasCollision

Topics

Getting the component

Adding and clearing forces

Applying impulses

Resetting physics simulations

See Also

Entity compliance