raycast
Cast a ray from the camera through screen coordinates to identify and return 3D objects hit, enabling picking and selection in Three.js scenes.
Instructions
[INSPECT] Read-only. Cast a ray from the camera through screen coordinates and return hit objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Normalized device X (-1 to 1, 0 = center) | |
| y | Yes | Normalized device Y (-1 to 1, 0 = center) | |
| maxHits | No | Max hits (default: 10) |