Building Setup
Buildings are set-up to indicate where doors are and where adjacent buildings can be placed using Attachment Points. Specify max height difference for adjacent buildings for better randomized results.
Last updated
Buildings are set-up to indicate where doors are and where adjacent buildings can be placed using Attachment Points. Specify max height difference for adjacent buildings for better randomized results.
Last updated
Create a Prefab of your Building Model.
Add the Building Script to your Building Prefab.
Make sure the building model is at the correct height using a 3D Plane. Position the Plane at zero and check that your building doors are at a good height relative to the Plane as if the Plane is the Terrain. Then Delete the Plane again.
Find the Door prefab under Quasi\TownGenerator\Prefabs and drag it into the scene.
Position the Door prefab at the correct place of your Building model. Duplicate it for all the doors of your model.
Find the AttachPoint prefab under Quasi\TownGenerator\Prefabs and drag it into the scene.
Position the AttachPoint prefab where you would like adjacent buildings to be generated. You can keep AttachPoints at zero height, or on the ground. All AttachPoints of the same Building set should be at the same height.
Duplicate the AttachPoint and add as many as you like.
Change the preferred Maximum Height Difference (the default is 1.0) for each AttachPoint on the AttachPoint Component.
Save your Prefab