Module spatial
Expand description
See spatial for the system contract and examples.
Bounded point buckets for engine interest, selection and proximity queries.
IDs are host-owned u64 values. Queries visit at most 4096 cells; an oversized
query returns an error instead of partial results. This is not a physics broadphase.
Use SpatialGrid::query_into to reuse caller storage and report omitted matches.
SpatialGrid::query_radius_into and SpatialGrid::query_nearest_into
return stored positions ranked by squared distance, then ID, without allocating.
Structs§
- Spatial
Grid - Spatial
Match - One stored point selected by a distance-ranked query.
- Spatial
Query Report - Counts from a successful caller-buffer query on
SpatialGrid.