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) }