improve char controller on platforms

This commit is contained in:
2025-03-09 22:10:24 +01:00
parent 49d8f54f1a
commit b7ca5c4ea2

View File

@@ -188,6 +188,8 @@ fn apply_controls(
controller.basis(TnuaBuiltinWalk { controller.basis(TnuaBuiltinWalk {
// The `desired_velocity` determines how the character will move. // The `desired_velocity` determines how the character will move.
desired_velocity: direction.normalize_or_zero() * 10.0, 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 // 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. // character's center and the lowest point of its collider.
float_height: 3.0, float_height: 3.0,