Add footstep sounds
This commit is contained in:
parent
2764454967
commit
3549cfd351
@ -1 +1 @@
|
|||||||
Subproject commit 4aa58e9b53032fb5cc8431a2102e75066313be35
|
Subproject commit 90a6be6e060d2730fbeeed679b4827ad63259439
|
||||||
@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user