better world gen
This commit is contained in:
9
World.cs
9
World.cs
@@ -67,10 +67,10 @@ namespace Voxel
|
||||
{
|
||||
var orientations = new List<Orientation>();
|
||||
|
||||
if (localX == 0) orientations.Add(Orientation.West);
|
||||
if (localX == size - 1) orientations.Add(Orientation.East);
|
||||
if (localZ == size - 1) orientations.Add(Orientation.South); // assuming Z+ is North
|
||||
if (localZ == 0) orientations.Add(Orientation.North);
|
||||
if (localX == size - 1) orientations.Add(Orientation.West);
|
||||
if (localX == 0) orientations.Add(Orientation.East);
|
||||
if (localZ == size - 1) orientations.Add(Orientation.North);
|
||||
if (localZ == 0) orientations.Add(Orientation.South);
|
||||
|
||||
return orientations;
|
||||
}
|
||||
@@ -94,7 +94,6 @@ namespace Voxel
|
||||
if (chunk.Neighbors.TryGetValue(orientation, out var neighbor) && neighbor != null)
|
||||
{
|
||||
neighbor.UpdateChunkMesh();
|
||||
Console.WriteLine($"Updated neighbor at {orientation}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user