character controller: Fix some cases of grounded not being detected (#711)

character offset exxageration to 1.2
This commit is contained in:
Thierry Berger
2024-08-09 11:54:28 +02:00
committed by GitHub
parent 510686a906
commit 5542bc5dbd

View File

@@ -397,7 +397,7 @@ impl KinematicCharacterController {
} }
fn predict_ground(&self, up_extends: Real) -> Real { 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( fn detect_grounded_status_and_apply_friction(