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 }
private static IEnumerable <Vector2> AddIsland(MarchingSquare marching, bool[,] wholeShape, bool entryType = true) { return(marching.DoMarch(wholeShape, entryType)); }