raycast
Cast a ray from the camera through screen coordinates and return hit objects for object picking or interaction in a Three.js scene.
Instructions
Cast a ray from camera through screen coordinates and return hit objects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Normalized device X coordinate (-1 to 1, 0 = center) | |
| y | Yes | Normalized device Y coordinate (-1 to 1, 0 = center) | |
| maxHits | No | Maximum hits to return (default: 10) |