ドキュメント

Unity Engine

Unity Engine

Constant Force component reference

Reference page for the Constant Force component.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.