Add offset back in
This commit is contained in:
@@ -731,6 +731,6 @@ impl KinematicCharacterController {
|
||||
}
|
||||
|
||||
fn subtract_hit(translation: Vector<Real>, hit: &TOI, offset: Real) -> Vector<Real> {
|
||||
let hit_normal = (translation.dot(&hit.normal1) * (1.0 + 0.)).min(0.0);
|
||||
let hit_normal = (translation.dot(&hit.normal1) * (1.0 + offset)).min(0.0);
|
||||
translation - *hit.normal1 * hit_normal
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user