Module de_index::precise

source ·
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§

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§

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 🔒

Type Aliases§