# Add Force At Position 2D

Apply a force at a given position in space.

The [AddForce](https://renownedgames.gitbook.io/ai-tree/nodes/tasks/rigidbody2d/add-force-2d) function applies a force that acts straight through the rigidbody's centre of mass and so produces only positional movement and no rotation. *AddForceAtPosition* can apply the force at any position in world space and will typically also apply a *torque* to the object which will set it rotating. Note that for the purposes of this function, the rigidbody is just a coordinate space of infinite size, so there is no reason why the force needs to be applied within the confines of the object's graphic or colliders.

{% hint style="info" %}
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.
{% endhint %}

**To create it**, right-click on free space in AI Tree inspector and select <mark style="color:purple;">Create Node/Tasks/Rigidbody2D/Add Force At Position 2D.</mark>

This task node has a number of fields, that are highlighted in picture below.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2FITDxZe3f4ex6P9RrITTC%2F2.png?alt=media&#x26;token=3934484a-22a0-4feb-8cbe-554a43c29ecf" alt=""><figcaption></figcaption></figure>

### Fields

| 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 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://renownedgames.gitbook.io/ai-tree/nodes/tasks/rigidbody2d/add-force-at-position-2d.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
