Posted January 30, 2023 by up2115462
#TB2
Following on from last week I will continue with building generation. I will implement a function that takes user input for min and max building heights.
Here is the interface for controlling building height.
Building generation code.
Next I import my car generation code which I wrote last term and modified it to work with my existing script.
Here is a picture of the cars placed in the city. I created some roads with polyCube's to get an idea of how I want the streets to look.
Next I worked on the coordinate system to make the grids conform to both positive and negative coordinates.
Here is the code that mitigates the error when using negative coordinates.
To Do: