diff --git a/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs b/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs index f30227c..0ddcae5 100644 --- a/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs +++ b/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs @@ -110,10 +110,16 @@ namespace Blarg.GameFramework.TileMap.Prefabs if (depth <= 0) throw new ArgumentException("depth"); + _width = width; + _height = height; + _depth = depth; + _bounds = new BoundingBox(); _bounds.Min.Set(Vector3.Zero); _bounds.Max.Set(width, height, depth); + _rotationBounds = new BoundingBox(); + int numTiles = width * height * depth; _data = new Tile[numTiles]; for (int i = 0; i < numTiles; ++i)