physics_raycast_3d
Cast a 3D ray in a physics scene to detect the first object hit, using origin, direction, and max distance.
Instructions
Cast a ray in 3D physics space (Rapier3D) and return the first hit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | ||
| direction | Yes | ||
| layerMask | No | ||
| maxDistance | Yes |