Skip to main content

Module query_sweep

Module query_sweep 

Expand description

3D Swept Shape-Casting & Volume Overlap Queries (query_sweep.rs).

Provides exact zero-heap 3D swept shape and overlap queries:

  • cast_sphere: swept sphere time-of-impact query via Minkowski radius inflation,
  • cast_capsule: swept vertical capsule time-of-impact query (used by step_character_3d),
  • overlap_aabb: broadphase + narrowphase AABB overlap query.

Structs§

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_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.