diff options
| author | Jan Nils Ferner <contact@jnferner.com> | 2023-01-26 23:51:28 +0100 |
|---|---|---|
| committer | Jan Nils Ferner <contact@jnferner.com> | 2023-01-26 23:51:28 +0100 |
| commit | 848fe9f4735d776684cd5197be7f44817f4adc2a (patch) | |
| tree | 2f2d52000dad4f111c06d64dde1bc99da0b82e19 /src | |
| parent | 1482106a1e4283a57326e193657e3e467f3e8c0d (diff) | |
| download | rapier-848fe9f4735d776684cd5197be7f44817f4adc2a.tar.gz rapier-848fe9f4735d776684cd5197be7f44817f4adc2a.tar.bz2 rapier-848fe9f4735d776684cd5197be7f44817f4adc2a.zip | |
Play around with offset
Diffstat (limited to 'src')
| -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 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; } |
