Play around with offset

This commit is contained in:
Jan Nils Ferner
2023-01-26 23:55:16 +01:00
parent d5cd4fe4bc
commit 5d7fdebea4

View File

@@ -734,6 +734,6 @@ impl KinematicCharacterController {
}
fn subtract_hit(translation: Vector<Real>, hit: &TOI, offset: Real) -> Vector<Real> {
let hit_normal = (translation.dot(&hit.normal1) * (1.0 + offset)).min(0.0);
let hit_normal = (translation.dot(&hit.normal1) * (1.0 + 0.)).min(0.0);
translation - *hit.normal1 * hit_normal
}