Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion core/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,16 @@ fn spawn_map(
..default()
},
);
tile_collisions.insert(tile_ent, tile_meta.collision);
// TODO: Due to a bug in the way that collisions are handled in the
// `physics/collisions.rs` file, having an empty collision isn't equivalent to not
// having a collision component.
//
// We should fix this so that we can insert an empty tile collision kind and have that
// work properly. For now, though, just not adding the tile collider component behaves
// properly.
if tile_meta.collision != TileCollisionKind::Empty {
tile_collisions.insert(tile_ent, tile_meta.collision);
}
}
let layer_ent = entities.create();
spawned_map_layer_metas.insert(layer_ent, SpawnedMapLayerMeta { layer_idx });
Expand Down