ryot_pathfinder 0.2.3

Provides specialized pathfinding functionalities for Bevy 2D, essential for dynamic navigation and movement within games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::prelude::*;
use ryot_tiled::prelude::*;

impl Pathable for TilePosition {
    fn generate(x: i32, y: i32, z: i32) -> Self {
        TilePosition::new(x, y, z)
    }

    fn coordinates(&self) -> (i32, i32, i32) {
        (self.x, self.y, self.z)
    }
}