From 478644491aaa6f561666aaa74b102fa4ef86ea0c Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 4 Dec 2024 17:40:25 -0600 Subject: [PATCH] Fix typo and shrink colliders to minimize spawning warnings. --- src/map.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/map.rs b/src/map.rs index 83496d9..3e05302 100644 --- a/src/map.rs +++ b/src/map.rs @@ -98,7 +98,7 @@ impl Default for TileBundle { fn default() -> Self { Self { transform: default(), - collider: Collider::rectangle(1., 1.), + collider: Collider::rectangle(0.99, 0.99), rigid_body: RigidBody::Static, map_obstruction: default(), } @@ -135,10 +135,7 @@ impl ZoneBundle { impl From<&MRect> for ZoneBundle { fn from(rect: &MRect) -> Self { - let collider = Collider::rectangle( - rect.width() as f32 + 1., - rect.height() as f32 + 0.1, - ); + let collider = Collider::rectangle(rect.width() as f32 + 1., rect.height() as f32 + 1.); let position = Vec2::new(rect.center().x(), rect.center().y()); Self::new(collider, position) }