Fixed light and object placement.
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ public partial class World : Node3D
|
||||
foreach (var kvp in tileMeshes)
|
||||
{
|
||||
tilePlaceholders[kvp.Key] = new List<Placeholder>();
|
||||
foreach (MeshInstance3D child in kvp.Value.GetChildren())
|
||||
foreach (Node3D child in kvp.Value.GetChildren())
|
||||
{
|
||||
tilePlaceholders[kvp.Key].Add(new Placeholder(child.Name, child.Transform));
|
||||
}
|
||||
@@ -141,7 +141,7 @@ public partial class World : Node3D
|
||||
|
||||
int posX, posY;
|
||||
|
||||
while(currentLight < layerSize * 2)
|
||||
while(currentLight < layerSize * layerSize / 2)
|
||||
{
|
||||
posX = rand.Next(layerSize);
|
||||
posY = rand.Next(layerSize);
|
||||
|
||||
Reference in New Issue
Block a user