bevy_uniform_grid_2d 0.4.2

A simple Bevy plugin for uniform grid spatial indexing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bevy::{
    ecs::entity::Entity,
    math::{IVec2, UVec2},
};
use thiserror::Error;

#[derive(Error, Debug, Clone, PartialEq)]
pub enum GridError {
    #[error("cell {0} is outside the grid")]
    OutOfBounds(IVec2),
    #[error("cell {0} not found")]
    CellNotFound(UVec2),
    #[error("entity {0:?} not found")]
    EntityNotFound(Entity),
}