Legacy Documentation: Version 2017.1 (Go to current version)
Wheel Joint 2D
Effectors 2D
Other Versions

Constant Force 2D

Switch to Scripting

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.

The Constant Force 2D Inspector
The Constant Force 2D Inspector

Properties

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.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答