Version: 2022.3
Language : English
Rigidbody component reference
Collision

Constant Force component reference

Switch to Scripting

Constant Force adds constant forces to a RigidbodyA component that allows a GameObject to be affected by simulated gravity and other forces. More info
See in Glossary
. This is useful for GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
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.

For more details, see Apply constant force to a Rigidbody.

Properties

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

Property: Function:
Force Define the direction of the linear force. The XYZ vectors refer to the sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
’s global axes.
Relative Force Define the direction of the linear force. The XYZ vectors refer to the Rigidbody’s local axes.
Torque Define the global axes that the Rigidbody rotates around.
Relative Torque Define the local axes that the Rigidbody rotates around.

ConstantForce

Rigidbody component reference
Collision
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961