diff options
| author | Jan Hohenheim <jan@hohenheim.ch> | 2023-02-04 19:14:05 +0100 |
|---|---|---|
| committer | Jan Hohenheim <jan@hohenheim.ch> | 2023-02-04 19:15:32 +0100 |
| commit | 6c5713aa0c8317e2ac428a546ae1ff0e1445e1e1 (patch) | |
| tree | 601d96843609fe30b8633ba00c294e5a7fd2f4a2 | |
| parent | da671fd99a737efb754139120a112e5532ab85ed (diff) | |
| download | rapier-6c5713aa0c8317e2ac428a546ae1ff0e1445e1e1.tar.gz rapier-6c5713aa0c8317e2ac428a546ae1ff0e1445e1e1.tar.bz2 rapier-6c5713aa0c8317e2ac428a546ae1ff0e1445e1e1.zip | |
Remove anti-jitter check
| -rw-r--r-- | src/control/character_controller.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/control/character_controller.rs b/src/control/character_controller.rs index 372dc66..24ccc6c 100644 --- a/src/control/character_controller.rs +++ b/src/control/character_controller.rs @@ -338,9 +338,7 @@ impl KinematicCharacterController { ) { // Apply the snap. let snap_distance = hit.toi - offset; - if snap_distance.abs() > 1.0e-5 { - result.translation -= *self.up * snap_distance; - } + result.translation -= *self.up * snap_distance; result.grounded = true; return Some((hit_handle, hit)); } |
