Merge pull request #94 from vladtrc/fix/pipe-crest-mr

Prevent uncommanded lift at slope transitions
This commit is contained in:
vc
2026-10-11 15:59:51 +03:00
committed by GitHub
+3 -1
View File
@@ -304,9 +304,11 @@ fn land(
if n[2] <= 0. || !(hit.walkable || n[2] >= threshold) {
return None;
}
let mut velocity = m.velocity;
project_ground(&mut velocity, &hit.normal);
Some(Motion {
origin: p,
velocity: project(m.velocity, &[hit.normal]),
velocity: project(velocity, &[hit.normal]),
})
}
pub(crate) fn traverse(