Module query_ray
Expand description
3D Spatial Raycasting (query_ray.rs).
Provides exact zero-heap 3D ray intersection queries:
ray_triangle_moller_trumbore: Möller–Trumbore ray-triangle intersection,ray_sphere_local&ray_sdf_local: analytical sphere and sphere-traced SDF raycasts,raycast_collider&cast_ray: BVH-accelerated world-space raycasting againstColliderShape3Dinstances.
Structs§
Functions§
- cast_
ray - Casts a 3D ray through a
BroadphaseBvhand collider slice, returning the closestRayHit3D. - ray_
sdf_ local - Sphere-tracing raycast against an analytical
SdfPrimitivein local space. - ray_
sphere_ local - Analytical ray-sphere intersection in local space (sphere centered at origin).
- ray_
triangle_ moller_ trumbore - Möller–Trumbore ray-triangle intersection test (
HotZeroHeap). - raycast_
collider - Raycast against a single
ColliderShape3Dtransformed bymotor.