Animate the local player mesh as well

This commit is contained in:
Sofia 2026-07-22 23:47:17 +03:00
parent 4053474bf7
commit 10e67c8ab7

View File

@ -450,6 +450,9 @@ impl ICharacterBody3D for LocalPlayer {
self.movement_dir = input_direction;
if let Some(mesh) = &mut self.soldier_mesh {
mesh.bind_mut()
.update_movement(Vector2::new(self.movement_dir.x, -self.movement_dir.z));
mesh.bind_mut().update_y_look(self.look_up);
}