Constant Force 2D is a quick utility for adding constant forces to a Rigidbody 2D. This works well for one-shot objects like rockets, if you want them to accelerate over time rather than starting with a large velocity.
Constant Force 2D applies both linear and torque (angular) forces continuously to the Rigidbody 2D, each time the physics engine updates at runtime.
Property: | Function: |
---|---|
Force | The linear force applied to the Rigidbody 2D at each physics update. |
Relative Force | The linear force, relative to the Rigidbody 2D coordinate system, applied each physics update. |
Torque | The torque applied to the Rigidbody 2D at each physics update. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information