aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Nils Ferner <contact@jnferner.com>2023-01-26 23:51:28 +0100
committerJan Nils Ferner <contact@jnferner.com>2023-01-26 23:51:28 +0100
commit848fe9f4735d776684cd5197be7f44817f4adc2a (patch)
tree2f2d52000dad4f111c06d64dde1bc99da0b82e19
parent1482106a1e4283a57326e193657e3e467f3e8c0d (diff)
downloadrapier-848fe9f4735d776684cd5197be7f44817f4adc2a.tar.gz
rapier-848fe9f4735d776684cd5197be7f44817f4adc2a.tar.bz2
rapier-848fe9f4735d776684cd5197be7f44817f4adc2a.zip
Play around with offset
-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 ff59d0e..8fb4b7f 100644
--- a/src/control/character_controller.rs
+++ b/src/control/character_controller.rs
@@ -267,7 +267,7 @@ impl KinematicCharacterController {
translation_remaining = translation_on_slope;
} else {
// No slopes or stairs ahead; try to move along obstacle.
- let allowed_translation = subtract_hit(translation_remaining, &toi, offset);
+ let allowed_translation = subtract_hit(translation_remaining, &toi, 0.);
result.translation += allowed_translation;
translation_remaining -= allowed_translation;
}