Skip to main content

Module query_ray

Module query_ray 

Expand description

3D Spatial Raycasting (query_ray.rs).

Provides exact zero-heap 3D ray intersection queries:

Structs§

RayHit3D
Hit result returned by cast_ray.

Functions§

cast_ray
Casts a 3D ray through a BroadphaseBvh and collider slice, returning the closest RayHit3D.
ray_sdf_local
Sphere-tracing raycast against an analytical SdfPrimitive in 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 ColliderShape3D transformed by motor.