Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Constant Force component reference

Reference page for the Constant Force component.
Read time 1 minuteLast updated 21 days ago

Constant Force adds constant forces to a Rigidbody. This is useful for GameObject movement that accelerates over time.
If you add a Constant Force component to a GameObject that does not have a Rigidbody, Unity automatically creates and adds a Rigidbody to the same GameObject.

Properties

For all values, a higher value produces a stronger force, which in turn produces a faster initial velocity.

Property:

Function:

ForceDefine the direction of the linear force. The XYZ vectors refer to the scene’s global axes.
Relative ForceDefine the direction of the linear force. The XYZ vectors refer to the Rigidbody’s local axes.
TorqueDefine the global axes that the Rigidbody rotates around.
Relative TorqueDefine the local axes that the Rigidbody rotates around.