From 5d7fdebea43b8cd09217f2666d1ad101fa29bb9a Mon Sep 17 00:00:00 2001 From: Jan Nils Ferner Date: Thu, 26 Jan 2023 23:55:16 +0100 Subject: Play around with offset --- src/control/character_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/control') diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs index ef8973c..d49019c 100644 --- a/src/control/character_controller.rs +++ b/src/control/character_controller.rs @@ -734,6 +734,6 @@ impl KinematicCharacterController { } fn subtract_hit(translation: Vector, hit: &TOI, offset: Real) -> Vector { - let hit_normal = (translation.dot(&hit.normal1) * (1.0 + offset)).min(0.0); + let hit_normal = (translation.dot(&hit.normal1) * (1.0 + 0.)).min(0.0); translation - *hit.normal1 * hit_normal } -- cgit