raycast
Cast a ray into a 3D scene to identify what it hits, enabling spatial queries and collision checks.
Instructions
Cast a ray into the scene and return what it hits. Useful for spatial queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | [x, y, z] start point | |
| direction | Yes | [dx, dy, dz] direction; it is normalised | |
| max_distance | No | The longest the ray goes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |