> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/nodes/tasks/physics/line-cast.md).

# Line Cast

Node description and basic instructions

### Description

Casts a line from *start* to *end* and returns detailed information about 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/Line 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%2FflwVtkKTtr0QACED9vP9%2FPhys3.png?alt=media&amp;token=8573371c-09b7-42ac-a579-d3693e047881" alt=""><figcaption></figcaption></figure>

### Fields

| Name                      | Description                                                   |
| ------------------------- | ------------------------------------------------------------- |
| Node Name                 | Name of node                                                  |
| Ignore Abort Self         | Whether node ignores abort self or not                        |
| Start                     | Origin of the Line Cast                                       |
| End                       | End of the Line Cast                                          |
| Culling Layer             | Used to selectively ignore colliders when casting a Line 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) |
