Animate the local player mesh as well
This commit is contained in:
parent
4053474bf7
commit
10e67c8ab7
@ -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