Skip to main content

Module scene

Module scene 

Source
Expand description

Scene graph — manages all active glyphs, entities, particles, and force fields. Full implementation with BVH spatial index, scene queries, serialization, transform hierarchy, layer management, event system, and portals.

Re-exports§

pub use bvh::Bvh;
pub use bvh::BvhNode;
pub use bvh::Aabb;
pub use query::SceneQuery;
pub use query::RaycastHit;
pub use query::FrustumQuery;
pub use query::SphereQuery;
pub use events::SceneEvent;
pub use events::SceneEventQueue;
pub use events::EventKind;

Modules§

bvh
Bounding Volume Hierarchy for fast spatial queries.
events
Scene event system.
field_manager
Force field lifecycle manager — creation, TTL expiry, spatial queries, composition.
node
Scene nodes — typed wrappers for the scene graph with parent-child transforms.
query
Scene query types and helpers.
spawn_system
Spawn system — wave-based enemy spawning with zones, patterns, and blueprints.

Structs§

AmbientZone
Axis-aligned region with ambient light/audio/fog properties.
FieldId
Opaque ID for a force field in the scene.
LayerId
Opaque ID for a layer.
NodeId
Opaque ID for a scene node.
Portal
A portal connects two points in space and renders the view from the other side.
PortalId
Opaque ID for a portal (scene transition).
Scene
The complete scene: all renderable objects and active forces.
SceneLayer
A render/logic layer controlling visibility and sort order.
SceneNode
A node in the scene hierarchy, holding a local transform.
SceneSnapshot
Serializable snapshot of the scene state.
SceneStats
Frame statistics for the scene.
SnapshotDiff
Transform3D
Decomposed 3-D transform.

Type Aliases§

SceneGraph
Backward compat alias used in lib.rs.