Fix missing account for offset

This commit is contained in:
Jan Nils Ferner
2023-01-27 17:20:12 +01:00
parent 014bbba042
commit b93c6b5766

View File

@@ -228,7 +228,7 @@ impl KinematicCharacterController {
&(Translation::from(result.translation) * character_pos),
&translation_dir,
character_shape,
translation_dist,
translation_dist + offset,
false,
filter,
) {
@@ -356,7 +356,7 @@ impl KinematicCharacterController {
}
fn predict_ground(&self, up_extends: Real) -> Real {
self.offset.eval(up_extends) * 1.3
self.offset.eval(up_extends) * 1.4
}
fn detect_grounded_status_and_apply_friction(