1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Spatial query view over the most recently derived [`ShapeModel`].
//!
//! After every [`SpawnShapeExt::spawn_shape`] call, the full upstream model
//! is stored in the [`LastDerivedModel`] resource so downstream systems can
//! ask spatial questions about the spawned terminals (e.g. "does this
//! prospective placement collide with any emitted terminal?") without
//! re-deriving the grammar.
//!
//! For low-level access, the upstream [`symbios_shape::TerminalQuery`] and
//! [`symbios_shape::obb_overlap`] are re-exported from the crate root.
//!
//! [`ShapeModel`]: symbios_shape::ShapeModel
//! [`SpawnShapeExt::spawn_shape`]: crate::spawner::SpawnShapeExt::spawn_shape
use Resource;
use ;
/// Resource holding the most recently derived [`ShapeModel`].
///
/// Overwritten on every [`SpawnShapeExt::spawn_shape`] call (last-spawn wins).
/// Initialised empty by [`BevySymbiosShapePlugin`].
///
/// Field 0 is `pub` so callers can use the upstream
/// [`ShapeModel`]/[`TerminalQuery`] APIs directly without going through this
/// wrapper.
///
/// [`SpawnShapeExt::spawn_shape`]: crate::spawner::SpawnShapeExt::spawn_shape
/// [`BevySymbiosShapePlugin`]: crate::BevySymbiosShapePlugin
;