warp.mesh_query_ray_anyhit#
- warp.mesh_query_ray_anyhit( ) bool#
Kernel
Returns
Trueimmediately upon the first ray hit on thewarp.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.- param id:
The mesh identifier
- param start:
The start point of the ray
- param dir:
The ray direction (should be normalized)
- param max_t:
The maximum distance along the ray to check for intersections
- param root:
The root node index for grouped BVH queries, or -1 for global root (optional, default: -1)