Skip to content

Commit

Permalink
remove gizmos
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Nov 8, 2024
1 parent 81a1d51 commit d4fb006
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/game/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ fn on_ground(
mut player: Query<(&Transform, &mut IsOnGround, &mut AgainstWall), With<Player>>,
ground: Query<&Transform, (Without<Player>, With<Ground>)>,
time: Res<Time>,
#[cfg(feature = "debug")] mut gizmos: Gizmos,
) {
let mut is_on_ground = false;
let mut is_against_wall = (false, false);
Expand All @@ -69,16 +68,6 @@ fn on_ground(
* 0.8,
);

#[cfg(feature = "debug")]
{
use bevy::math::bounding::BoundingVolume;
gizmos.rect_2d(
player_aabb.center(),
player_aabb.half_size() * 2.,
Color::srgb(1.0, 0.0, 0.0),
);
}

for ground_transform in &ground {
let ground_aabb = Aabb2d::new(
Vec2::new(
Expand Down

0 comments on commit d4fb006

Please sign in to comment.