diff options
| author | mat <git@matdoes.dev> | 2023-08-25 03:19:11 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-08-25 03:19:11 -0500 |
| commit | 7df2256f35fdf6925e2499966774d3a9a861e69c (patch) | |
| tree | 978782c1fdcba9f6119ec5872555dd6673f180af /azalea/src/bot.rs | |
| parent | d5465cd28e43d48b3e913fdb1161eb907e4d80d0 (diff) | |
| download | azalea-drasl-7df2256f35fdf6925e2499966774d3a9a861e69c.tar.xz | |
add failing test for that weird diagonal edge case
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Diffstat (limited to 'azalea/src/bot.rs')
| -rw-r--r-- | azalea/src/bot.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 1624db78..40ab4124 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -19,6 +19,7 @@ use azalea_physics::{force_jump_listener, PhysicsSet}; use bevy_app::{FixedUpdate, Update}; use bevy_ecs::prelude::Event; use bevy_ecs::schedule::IntoSystemConfigs; +use log::trace; use std::f64::consts::PI; use crate::pathfinder::PathfinderPlugin; @@ -161,6 +162,11 @@ fn look_at_listener( if let Ok((position, eye_height, mut look_direction)) = query.get_mut(event.entity) { let (y_rot, x_rot) = direction_looking_at(&position.up(eye_height.into()), &event.position); + trace!( + "look at {:?} (currently at {:?})", + event.position, + **position + ); (look_direction.y_rot, look_direction.x_rot) = (y_rot, x_rot); } } |
