Skip to content

Api > ForceMode


ForceMode⚓︎

Use ForceMode to specify how to apply a force using Rigidbody.AddForce. The AddForce function impacts how your GameObject moves by allowing you to define your own force vector, as well as choosing how to apply this force to the GameObject (this GameObject must have a Rigidbody component attached). ForceMode allows you to choose from four different ways to affect the GameObject using this Force: Acceleration, Force, Impulse, and VelocityChange. Unity ForceMode

Elements⚓︎

Element Description
ForceMode.Acceleration Add a continuous acceleration to the rigidbody, ignoring its mass.
ForceMode.Force Add a continuous force to the rigidbody, using its mass.
ForceMode.Impulse Add an instant force impulse to the rigidbody, using its mass.
ForceMode.VelocityChange Add an instant velocity change to the rigidbody, ignoring its mass.