improve char controller on platforms
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user