From d5465cd28e43d48b3e913fdb1161eb907e4d80d0 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 25 Aug 2023 02:34:31 -0500 Subject: add basic pathfinding test --- azalea-client/src/local_player.rs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'azalea-client/src/local_player.rs') diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index a66b7ad5..2e0ccc75 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -20,7 +20,7 @@ use tokio::{sync::mpsc, task::JoinHandle}; use crate::{ events::{Event as AzaleaEvent, LocalPlayerEvents}, - ClientInformation, WalkDirection, + ClientInformation, }; /// This is a component for our local player entities that are probably in a @@ -51,23 +51,6 @@ pub struct LocalPlayer { pub(crate) write_packets_task: JoinHandle<()>, } -/// Component for entities that can move and sprint. Usually only in -/// [`LocalPlayer`] entities. -#[derive(Default, Component)] -pub struct PhysicsState { - /// Minecraft only sends a movement packet either after 20 ticks or if the - /// player moved enough. This is that tick counter. - pub position_remainder: u32, - pub was_sprinting: bool, - // Whether we're going to try to start sprinting this tick. Equivalent to - // holding down ctrl for a tick. - pub trying_to_sprint: bool, - - pub move_direction: WalkDirection, - pub forward_impulse: f32, - pub left_impulse: f32, -} - /// A component only present in players that contains the [`GameProfile`] (which /// you can use to get a player's name). /// -- cgit v1.2.3