From 6a75ed4b63f33693d9416f6de47f9d84e5aadc9b Mon Sep 17 00:00:00 2001 From: Jan Nils Ferner Date: Thu, 26 Jan 2023 23:19:18 +0100 Subject: Try what happens without offset I think should be correct --- 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 0714749..b7d0503 100644 --- a/src/control/character_controller.rs +++ b/src/control/character_controller.rs @@ -628,7 +628,7 @@ impl KinematicCharacterController { false, filter, ) - .map(|hit| hit.1.toi + offset) + .map(|hit| hit.1.toi) .unwrap_or(max_height); // Remove the step height from the vertical part of the self. -- cgit