Add footstep sounds

This commit is contained in:
Sofia 2026-08-07 22:07:29 +03:00
parent 2764454967
commit 3549cfd351
2 changed files with 1 additions and 5 deletions

@ -1 +1 @@
Subproject commit 4aa58e9b53032fb5cc8431a2102e75066313be35 Subproject commit 90a6be6e060d2730fbeeed679b4827ad63259439

View File

@ -116,14 +116,10 @@ impl<T: IPlayer + ICharacterBody3D + WithBaseField> PlayerCommon for T {
// Detect if it's floor we're contacting with // Detect if it's floor we're contacting with
if collision.get_normal().dot(Vector3::UP) > 0.95 { if collision.get_normal().dot(Vector3::UP) > 0.95 {
if let Ok(footstep_box) = collider.try_cast::<FootstepBox>() { if let Ok(footstep_box) = collider.try_cast::<FootstepBox>() {
godot_print!("{:?}", footstep_box.bind().kind);
self.set_walk_kind(footstep_box.bind().kind); self.set_walk_kind(footstep_box.bind().kind);
} else { } else {
godot_print!("{:?}", FootstepKind::default());
self.set_walk_kind(FootstepKind::default()); self.set_walk_kind(FootstepKind::default());
} }
} else {
godot_print!("{}", collision.get_normal());
} }
} }
} }