aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 1007f1d..6c2d89f 100644
--- a/src/control/character_controller.rs
+++ b/src/control/character_controller.rs
@@ -342,7 +342,7 @@ impl KinematicCharacterController {
filter,
) {
// Apply the snap.
- result.translation -= *self.up * (hit.toi - offset).max(0.0);
+ result.translation -= *self.up * (hit.toi - offset);
result.grounded = true;
return Some((hit_handle, hit));
}