Skip to content

ForceMode

ForceMode is used to specify the application mode of a physical force.

  • ForceMode.Force: Applies a continuous force to the object, resulting in continuous acceleration.
  • ForceMode.Impulse: Applies an instantaneous force to the object, resulting in an immediate change in velocity.
  • ForceMode.VelocityChange: Applies a force to the object that changes its velocity by the specified amount.
  • ForceMode.Acceleration: Applies a continuous acceleration to the object, resulting in continuous change in velocity.
attributesdescription
ForceApplies a continuous force that can accumulate on an object until another force is applied in the opposite direction.
ImpulseApplies an instantaneous force that only acts once and does not accumulate on the object.
VelocityChangeApplies an instantaneous change in velocity. This velocity change only affects the object once and does not accumulate.
AccelerationApplies a continuous acceleration that can accumulate on an object until another acceleration in the opposite direction is applied.