Skip to main content

Crate wowlab_engine_spatial

Crate wowlab_engine_spatial 

Source
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§

SpatialQueryObservation
Exact query result together with the number of broad-phase candidates examined.

Traits§

SpatialQueryDiagnostics
Implementation-neutral diagnostics used by the maintained spatial correctness benchmark.

Functions§

build_spatial_query
Build the selected spatial query without exposing its concrete implementation.