Fix typo and shrink colliders to minimize spawning warnings.
This commit is contained in:
parent
ed10eabb63
commit
478644491a
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user