From 5542bc5dbd7c569c23c8147c295fd3301fd29cfd Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Fri, 9 Aug 2024 11:54:28 +0200 Subject: [PATCH] character controller: Fix some cases of grounded not being detected (#711) character offset exxageration to 1.2 --- src/control/character_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs index 230b1eb18..e2b48004b 100644 --- a/src/control/character_controller.rs +++ b/src/control/character_controller.rs @@ -397,7 +397,7 @@ impl KinematicCharacterController { } fn predict_ground(&self, up_extends: Real) -> Real { - self.offset.eval(up_extends) * 1.1 + self.offset.eval(up_extends) * 1.2 } fn detect_grounded_status_and_apply_friction(