From b7ca5c4ea2b8dacd93ab4cec243797fe3ea87b6c Mon Sep 17 00:00:00 2001 From: extrawurst Date: Sun, 9 Mar 2025 22:10:24 +0100 Subject: [PATCH] improve char controller on platforms --- src/player.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/player.rs b/src/player.rs index 476e837..50ad00b 100644 --- a/src/player.rs +++ b/src/player.rs @@ -188,6 +188,8 @@ fn apply_controls( controller.basis(TnuaBuiltinWalk { // The `desired_velocity` determines how the character will move. desired_velocity: direction.normalize_or_zero() * 10.0, + spring_strengh: 1000., + spring_dampening: 0.5, // The `float_height` must be greater (even if by little) from the distance between the // character's center and the lowest point of its collider. float_height: 3.0,