Expand description
Concrete spatial-query adapter for the WoW Lab simulation engine.
use wowlab_engine_ports::SpatialQuery;
use wowlab_engine_spatial::build_spatial_query;
use wowlab_types::sim::{SpatialLayerDefinition, SpatialLayerId, StaticSpatialScene};
let scene = StaticSpatialScene {
layers: vec![SpatialLayerDefinition {
id: SpatialLayerId(0),
slug: "ground".into(),
}],
obstacles: Vec::new(),
};
let query = build_spatial_query(&scene, &[])?;
assert!(query
.candidates_on_layer(SpatialLayerId(0))
.is_empty());Modules§
- rstar 🔒
- Selected rstar + robust implementation of the spatial-query port.
Structs§
- Spatial
Query Observation - Exact query result together with the number of broad-phase candidates examined.
Traits§
- Spatial
Query Diagnostics - Implementation-neutral diagnostics used by the maintained spatial correctness benchmark.
Functions§
- build_
spatial_ query - Build the selected spatial query without exposing its concrete implementation.