---
description: Node description and basic instructions
---

# 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="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2F7cjIOQjf4Kj51igqGJkQ%2FPhys1.png?alt=media&#x26;token=792387e7-e7c9-41fb-97d1-f91afb4947ab" 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](../../../basic/blackboard) |
