mirror of
https://github.com/vladtrc/iw4L
synced 2026-10-25 18:05:19 -04:00
Merge pull request #94 from vladtrc/fix/pipe-crest-mr
Prevent uncommanded lift at slope transitions
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user