Fix missing ground check

This commit is contained in:
Jan Nils Ferner
2023-01-28 00:18:51 +01:00
parent d4ca845393
commit 1a94c62a1a

View File

@@ -428,6 +428,10 @@ impl KinematicCharacterController {
manifold_center += contact_point.coords;
*translation_remaining += normal
* (normal_target_mvt - normal_current_mvt);
if normal.dot(&self.up) <= 1.0e-5 {
grounded = true;
}
}
}