use azalea_core::{aabb::AABB, position::Vec3}; #[derive(Debug, Default, Clone)] pub struct EntityDimensions { pub width: f32, pub height: f32, } impl EntityDimensions { pub fn make_bounding_box(&self, pos: &Vec3) -> AABB { let radius = (self.width / 2.0) as f64; let height = self.height as f64; AABB { min: Vec3::new(pos.x - radius, pos.y, pos.z - radius), max: Vec3::new(pos.x + radius, pos.y + height, pos.z + radius), } } }