Skip to main content

Module query

Module query 

Expand description

Backwards-compatible query module alias re-exporting both ray and swept shape queries.

Structs§

RayHit3D
Hit result returned by cast_ray.
ShapeCastHit3D
Hit result returned by cast_sphere and cast_capsule.

Functions§

cast_capsule
Casts a vertical 3D capsule (radius, half_height) along dir up to max_dist by sweeping 3 axial proxy spheres (bottom hemisphere, center, top hemisphere).
cast_ray
Casts a 3D ray through a BroadphaseBvh and collider slice, returning the closest RayHit3D.
cast_sphere
Casts a sphere of radius along dir up to max_dist by inflating target primitives by radius.
overlap_aabb
Convenience wrapper returning all collider IDs overlapping query_aabb.
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.