Beispiel #1
0
            public static IntersectionCheckNode CreateFromTiles(ICollection <CustomTile> tiles, float maxRadius)
            {
                IntersectionCheckNode result = new IntersectionCheckNode();

                var initialBoundingBox = new BoundingBox(new Vector3(-maxRadius, -maxRadius, -maxRadius), new Vector3(maxRadius, maxRadius, maxRadius));

                foreach (CustomTile t in tiles)
                {
                    result.AddTile(t, 0, ref initialBoundingBox);
                }

                return(result);
            }