Remove unused variables

This commit is contained in:
Jan Nils Ferner
2023-01-28 01:08:22 +01:00
parent 456c62e2ff
commit 3b537a20c2

View File

@@ -193,8 +193,7 @@ impl KinematicCharacterController {
let mut translation_remaining = desired_translation; let mut translation_remaining = desired_translation;
// Check if we are grounded at the initial position. self.detect_grounded_status_and_apply_friction(
let grounded_at_starting_pos = self.detect_grounded_status_and_apply_friction(
dt, dt,
bodies, bodies,
colliders, colliders,
@@ -298,19 +297,17 @@ impl KinematicCharacterController {
} }
} }
// If needed, and if we are not already grounded, snap to the ground. // If needed, snap to the ground.
//if grounded_at_starting_pos { self.snap_to_ground(
self.snap_to_ground( bodies,
bodies, colliders,
colliders, queries,
queries, character_shape,
character_shape, &(Translation::from(result.translation) * character_pos),
&(Translation::from(result.translation) * character_pos), &dims,
&dims, filter,
filter, &mut result,
&mut result, );
);
//}
// Return the result. // Return the result.
result result