예제 #1
0
        private void AddIsland(MarchingSquare marching, bool[,] wholeShape, bool entryType = true)
        {
            var points = marching.DoMarch(wholeShape, entryType);

            var verts = CreateCollisionObject(points);

            vertices.AddRange(verts.Select(p => p * 100)); // Debug
        }
예제 #2
0
 private static IEnumerable <Vector2> AddIsland(MarchingSquare marching, bool[,] wholeShape, bool entryType = true)
 {
     return(marching.DoMarch(wholeShape, entryType));
 }