From d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 23 Jul 2023 22:17:17 -0500 Subject: clean up azalea-entity a little --- azalea-entity/src/dimensions.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'azalea-entity/src/dimensions.rs') diff --git a/azalea-entity/src/dimensions.rs b/azalea-entity/src/dimensions.rs index 5e716307..1d013d10 100755 --- a/azalea-entity/src/dimensions.rs +++ b/azalea-entity/src/dimensions.rs @@ -1,7 +1,4 @@ use azalea_core::{Vec3, AABB}; -use bevy_ecs::{query::Changed, system::Query}; - -use super::{Physics, Position}; #[derive(Debug, Default)] pub struct EntityDimensions { @@ -24,15 +21,3 @@ impl EntityDimensions { } } } - -/// Sets the position of the entity. This doesn't update the cache in -/// azalea-world, and should only be used within azalea-world! -/// -/// # Safety -/// Cached position in the world must be updated. -pub fn update_bounding_box(mut query: Query<(&Position, &mut Physics), Changed>) { - for (position, mut physics) in query.iter_mut() { - let bounding_box = physics.dimensions.make_bounding_box(position); - physics.bounding_box = bounding_box; - } -} -- cgit v1.2.3