Play around with offset

This commit is contained in:
Jan Nils Ferner
2023-01-26 23:51:28 +01:00
parent 1482106a1e
commit 848fe9f473

View File

@@ -267,7 +267,7 @@ impl KinematicCharacterController {
translation_remaining = translation_on_slope;
} else {
// No slopes or stairs ahead; try to move along obstacle.
let allowed_translation = subtract_hit(translation_remaining, &toi, offset);
let allowed_translation = subtract_hit(translation_remaining, &toi, 0.);
result.translation += allowed_translation;
translation_remaining -= allowed_translation;
}