Contents

ForceMode

The options that control how physics system applies the forces.

Declaration

enum ForceMode

Overview

ForceMode allows you to customize how the physics system applies the force-like vector quantity that you set via setForce(_:index:) and setTorque(_:index:). For example, ForceMode.force indicates the vector quantity has the unit of force, which is the most common choice. You can use ForceMode.acceleration to exert a constant acceleration on rigid bodies regardless of their mass.

Topics

Enumeration Cases

See Also

Custom forces