From 848fe9f4735d776684cd5197be7f44817f4adc2a Mon Sep 17 00:00:00 2001 From: Jan Nils Ferner Date: Thu, 26 Jan 2023 23:51:28 +0100 Subject: Play around with offset --- src/control/character_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit