Remove anti-jitter check

This commit is contained in:
Jan Hohenheim
2023-02-04 19:14:05 +01:00
parent da671fd99a
commit 6c5713aa0c

View File

@@ -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));
}