# Box Cast

### Description

Casts the box along a ray and returns detailed information on what was hit.

{% hint style="info" %}
**bool** True, if any intersections were found.
{% endhint %}

**To create it**, right-click on free space in AI Tree inspector and select <mark style="color:purple;">Create Node/Tasks/Physics/Box Cast.</mark>

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

<figure><img src="/files/OQmZwD60QV1jl9NyCAcp" alt=""><figcaption></figcaption></figure>

### Fields

| Name                      | Description                                                  |
| ------------------------- | ------------------------------------------------------------ |
| Node Name                 | Name of node                                                 |
| Ignore Abort Self         | Whether node ignores abort self or not                       |
| Origin                    | Origin of the Box Cast                                       |
| Direction                 | Direction in which to cast the box                           |
| Half Extents              | Half the size of the box in each dimension                   |
| Max Distance              | Max length of the cast (by default: *infinity*)              |
| Culling Layer             | Used to selectively ignore colliders when casting a Box Cast |
| Query Trigger Interaction | Specifies whether this query should hit Triggers             |

### Message

| Name     | Description                                                       |
| -------- | ----------------------------------------------------------------- |
| Message  | Value of message                                                  |
| Argument | Argument of message in [Blackboard](/ai-tree/basic/blackboard.md) |


---

# 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/physics/box-cast.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.
