Add Force 2D
Node description and basic instructions
Last updated
Node description and basic instructions
Last updated
Apply a force to the rigidbody.
The force is specified as two separate components in the X and Y directions (there is no Z direction in 2D physics). The object will be accelerated by the force according to the law force = mass x acceleration - the larger the mass, the greater the force required to accelerate to a given speed.
If you don’t specify a ForceMode2D the default will be used. The default in this case is ForceMode2D Force which adds force over time, using mass.
To create it, right-click on free space in AI Tree inspector and select Create Node/Tasks/Rigidbody2D/Add Force 2D.
This task node has a number of fields, that are highlighted in picture below.
Name | Description |
---|---|
Node Name | Name of node |
Ignore Abort Self | Whether node ignores abort self or not |
Target | Target to which force is added |
Force | Force vector in world coordinates |
Mode | Method used to apply the force to its targets |