aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Nils Ferner <contact@jnferner.com>2023-01-26 23:19:18 +0100
committerJan Nils Ferner <contact@jnferner.com>2023-01-26 23:19:18 +0100
commit6a75ed4b63f33693d9416f6de47f9d84e5aadc9b (patch)
tree2e471578802aab37d48c3288dabf9766520c6c08
parentc63e2f2cbd8e88c6a22faf62fe4c6e4e7aca45e1 (diff)
downloadrapier-6a75ed4b63f33693d9416f6de47f9d84e5aadc9b.tar.gz
rapier-6a75ed4b63f33693d9416f6de47f9d84e5aadc9b.tar.bz2
rapier-6a75ed4b63f33693d9416f6de47f9d84e5aadc9b.zip
Try what happens without offset I think should be correct
-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 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.