diff --git a/src/bin/kawari-world.rs b/src/bin/kawari-world.rs index 4c80d94..1efb82a 100644 --- a/src/bin/kawari-world.rs +++ b/src/bin/kawari-world.rs @@ -536,9 +536,13 @@ async fn main() { } } ClientZoneIpcData::UpdatePositionHandler { - position, .. + position, + rotation, } => { - tracing::info!("Character moved to {position:#?}"); + tracing::info!( + "Character moved to {position:#?} {}", + rotation.to_degrees() + ); connection.position = *position; } diff --git a/src/world/ipc/mod.rs b/src/world/ipc/mod.rs index c998fd1..a817cd1 100644 --- a/src/world/ipc/mod.rs +++ b/src/world/ipc/mod.rs @@ -282,8 +282,9 @@ pub enum ClientZoneIpcData { }, #[br(pre_assert(*magic == ClientZoneIpcType::UpdatePositionHandler))] UpdatePositionHandler { - // TODO: full of possibly interesting information - unk: [u8; 8], // not empty + /// In radians. + #[brw(pad_after = 4)] // empty + rotation: f32, #[brw(pad_after = 4)] // empty position: Position, },