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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"direction": "<direction>",
"maxDistance": "<maxDistance>"
},
"name": "physics_raycast_3d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | ||
| direction | Yes | ||
| layerMask | No | ||
| maxDistance | Yes |