Skip to main content

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

ElementDescription
ForceMode.AccelerationAdd a continuous acceleration to the rigidbody, ignoring its mass.
ForceMode.ForceAdd a continuous force to the rigidbody, using its mass.
ForceMode.ImpulseAdd an instant force impulse to the rigidbody, using its mass.
ForceMode.VelocityChangeAdd an instant velocity change to the rigidbody, ignoring its mass.