Ejemplo n.º 1
0
 List<Vector2> SampleWall()
 {
     float width = (HexMeshGenerator.HexCellVertices[1] - HexMeshGenerator.HexCellVertices[0]).magnitude;
     float height = settings.wallHeight - settings.wallTopOffset;
     return PoissonDiskWithTilingSampler.SampleRectMirrorX(settings.diskR, settings.maxNumGems, Vector2.zero, new Vector2(width, height));
 }