Animate the local player mesh as well
This commit is contained in:
parent
b2a906c840
commit
a551b50c8c
@ -450,6 +450,9 @@ impl ICharacterBody3D for LocalPlayer {
|
|||||||
self.movement_dir = input_direction;
|
self.movement_dir = input_direction;
|
||||||
|
|
||||||
if let Some(mesh) = &mut self.soldier_mesh {
|
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);
|
mesh.bind_mut().update_y_look(self.look_up);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user