diff options
| author | Thierry Berger <contact@thierryberger.com> | 2024-08-09 11:54:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-09 11:54:28 +0200 |
| commit | 5542bc5dbd7c569c23c8147c295fd3301fd29cfd (patch) | |
| tree | 6972c8f8ec8aa2b863c3990cb02eee590fbc5a21 | |
| parent | 510686a9064d839d3ac0661852f1f0c906799d18 (diff) | |
| download | rapier-5542bc5dbd7c569c23c8147c295fd3301fd29cfd.tar.gz rapier-5542bc5dbd7c569c23c8147c295fd3301fd29cfd.tar.bz2 rapier-5542bc5dbd7c569c23c8147c295fd3301fd29cfd.zip | |
character controller: Fix some cases of grounded not being detected (#711)
character offset exxageration to 1.2
| -rw-r--r-- | src/control/character_controller.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs index 230b1eb..e2b4800 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( |
