We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e3d76 commit b9e3433Copy full SHA for b9e3433
src/control/character_controller.rs
@@ -318,7 +318,7 @@ impl KinematicCharacterController {
318
result: &mut EffectiveCharacterMovement,
319
) -> Option<(ColliderHandle, TOI)> {
320
if let Some(snap_distance) = self.snap_to_ground {
321
- if result.translation.dot(&self.up) < -1.0e-5 {
+ if result.translation.dot(&self.up) <= 0.0 {
322
let snap_distance = snap_distance.eval(dims.y);
323
let offset = self.offset.eval(dims.y);
324
if let Some((hit_handle, hit)) = queries.cast_shape(
0 commit comments