diff --git a/rust/src/player/mod.rs b/rust/src/player/mod.rs index 6890bfc..39005c2 100644 --- a/rust/src/player/mod.rs +++ b/rust/src/player/mod.rs @@ -114,7 +114,7 @@ impl PlayerCommon for T { && let Some(collider) = collision.get_collider() { // Detect if it's floor we're contacting with - if collision.get_normal().dot(Vector3::UP) > 0.95 { + if collision.get_normal().dot(self.base().get_floor_normal()) > 0.95 { if let Ok(footstep_box) = collider.try_cast::() { self.set_walk_kind(footstep_box.bind().kind); } else {