warp.mesh_query_ray_anyhit#
- warp.mesh_query_ray_anyhit( ) bool#
Kernel
Check for any ray hit on the
warp.Meshwith identifierid.The
rootparameter can be obtained using themesh_get_group_root()function when creating a grouped mesh. Whenrootis a valid (>=0) value, the traversal will be confined to the subtree starting from the root. Ifrootis -1 (default), traversal starts at the mesh’s global root.- Parameters:
id – The mesh identifier
start – The start point of the ray
dir – The ray direction (should be normalized)
max_t – The maximum distance along the ray to check for intersections
root – The root node index for grouped BVH queries, or -1 for global root (optional, default: -1)