
Detects intersections with colliders in the 3D environment by casting a ray from one point in space to another. All determines if the ray should extend to its entire length, while Near will stop at the nearest object it hits.
| Name | Data Type | Description |
|---|
| Start | Exec | Start the ray cast. |
| Ray Type | String | A setting to determine if the ray should extend to its entire length, or stop at the nearest object it hits. |
| Origin | Vec3 | The starting point of the ray. You can provide a 3D vector value as the ray's origin.. |
| Direction | Vec3 | The direction in which the ray will be cast. You can provide a 3D vector value as the ray's direction. |
| Length | Number | The maximum distance the ray should travel. If not provided, the ray will travel infinitely. |
Output
| Name | Data Type | Description |
|---|
| Next | Exec | Execute the next node. |
| Raycast Hit | Boolean | Outputs true if the raycast hits an object; false if not. Connect this output to other nodes to create custom logic based on the raycast result. |
| Hit Info Array | Array<T> | The result of the raycast if it intersects with a collider. Connect this output to a Ray Hit Info node to access the information. |