Instance Method

clearForcesAndTorques()

Clears all forces previously added to the physics body.

Declaration

func clearForcesAndTorques()

See Also

Adding and Clearing Forces

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

Applies a force to the physics body at its center of mass.

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

Applies a force to the physics body at the specified position.

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

Applies a torque to the physics body at its center of mass.