Add Force At Position
Node description and basic instructions
Last updated
Node description and basic instructions
Last updated
Applies force at position. As a result this will apply a torque and force on the object.
For realistic effects position should be approximately in the range of the surface of the rigid body. This is most commonly used for explosions. When applying explosions it is best to apply forces over several frames instead of just one. Note that when position is far away from the center of the rigid body the applied torque will be unrealistically large.
Force can be applied only to an active rigid body. If a GameObject is inactive, AddForceAtPosition has no effect.
To create it, right-click on free space in AI Tree inspector and select Create Node/Tasks/Rigidbody/Add Force At Position.
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
Position
Position in world coordinates
Mode
Method used to apply the force to its targets