aboutsummaryrefslogtreecommitdiff
path: root/src/control
diff options
context:
space:
mode:
authorJan Nils Ferner <contact@jnferner.com>2023-01-27 23:41:39 +0100
committerJan Nils Ferner <contact@jnferner.com>2023-01-27 23:41:39 +0100
commite094bf8f0d9bcad4e0385a578bf35c475ce4e653 (patch)
treeccafd46a480d7171ca64786de6821abc371531ad /src/control
parent8fa9f9cb1aac596c0f37f62013cc41ed0e13f773 (diff)
downloadrapier-e094bf8f0d9bcad4e0385a578bf35c475ce4e653.tar.gz
rapier-e094bf8f0d9bcad4e0385a578bf35c475ce4e653.tar.bz2
rapier-e094bf8f0d9bcad4e0385a578bf35c475ce4e653.zip
Tweak prediction
Diffstat (limited to 'src/control')
-rw-r--r--src/control/character_controller.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs
index 8db603b..a1ea64b 100644
--- a/src/control/character_controller.rs
+++ b/src/control/character_controller.rs
@@ -356,7 +356,7 @@ impl KinematicCharacterController {
}
fn predict_ground(&self, up_extends: Real) -> Real {
- self.offset.eval(up_extends) * 1.4
+ self.offset.eval(up_extends) * 2.
}
fn detect_grounded_status_and_apply_friction(