use crate::components::Component;
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Position {
pub x: f64,
pub y: f64,
pub z: f64,
}
impl Component for Position {}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Rotation {
pub yaw: f32,
pub pitch: f32,
}
impl Component for Rotation {}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Velocity {
pub dx: f64,
pub dy: f64,
pub dz: f64,
}
impl Component for Velocity {}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct BoundingBox {
pub width: f32,
pub height: f32,
}
impl Component for BoundingBox {}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct BlockPosition {
pub x: i32,
pub y: i32,
pub z: i32,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct ChunkPosition {
pub x: i32,
pub z: i32,
}