Expand description
This module implements collider based spatial indexing of game entities and various geometry based lookup (for example ray casting).
The core structure is a square tile grid which points to Bevy ECS entities.
Newly spawned entities are automatically added, despawned entities removed
and moved entities updated by systems added by PreciseIndexPlugin
.
Re-exports§
pub use self::collider::ColliderWithCache;
pub use self::collider::LocalCollider;
pub use self::collider::QueryCollider;
pub use self::index::EntityIndex;
pub use self::index::RayEntityIntersection;
pub use self::index::SpatialQuery;
Modules§
- aabb 🔒
- collider 🔒
- grid 🔒This module contains implementation of entity index based on 2D square grid of entity sets.
- index 🔒This module contains implementation of spatial index of entities and various system parameters to retrieve entities based on spatial queries.
- range 🔒
- segment 🔒Tools for retrieving entities potentially intersecting a line segment.
Structs§
- Indexed 🔒
- Bevy plugin which adds systems necessary for spatial indexing of solid entities.
Enums§
Functions§
- cleanup 🔒
- insert 🔒This system iterates over all not yet indexed entities, computes their shape and adds them to the index.
- remove 🔒
- setup 🔒
- update 🔒