Contents

ForceMode.velocity

A direct adjustment to a body’s linear or angular velocity, independent of its mass or inertia.

Declaration

case velocity

Discussion

The quantity that user sets via setForce(_:index:) has the units of distance / time. velocity mode causes a change in velocity independent of a body’s mass.

The quantity that user sets via setTorque(_:index:) has the units of 1 / time or radian / time. velocity mode causes a change in angular velocity independent of a body’s mass or inertia.