Miscellany
public text v1 · immutable void setScale(float x, float y, float z){
base.setScale(x,y,z);
foreach(TerrainNode part; chunks){
part.setScale(x,y,z);
}
ubyte a = 0;
while (a < width*depth){
chunks[a].setPosition(
-width/2 * x/2 + a/width * x,
y / 4,
-depth/2 * z/2 + a%width * z);
Log.write(-width/2 * x/2 + a/width * x);
Log.write(-depth/2 * z/2 + a%width * z);
a++;
}
}