aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src/dimensions.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-07-23 22:17:17 -0500
committermat <git@matdoes.dev>2023-07-23 22:17:17 -0500
commitd99ba0da5500a1a4917bf9c8c9e93e2caa4ada99 (patch)
tree08af266f9ccc9a6dea7593198bfe50dab2a307eb /azalea-entity/src/dimensions.rs
parent2ab16402de3ac12c04696833450cd8d2f7b39b85 (diff)
downloadazalea-drasl-d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99.tar.xz
clean up azalea-entity a little
Diffstat (limited to 'azalea-entity/src/dimensions.rs')
-rwxr-xr-xazalea-entity/src/dimensions.rs15
1 files changed, 0 insertions, 15 deletions
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<Position>>) {
- for (position, mut physics) in query.iter_mut() {
- let bounding_box = physics.dimensions.make_bounding_box(position);
- physics.bounding_box = bounding_box;
- }
-}