Added lot allocation.
This commit is contained in:
@ -12,7 +12,7 @@ public class InitializeScript : MonoBehaviour
|
||||
{
|
||||
// Load configuration
|
||||
Logger.Info("Loading configuration...");
|
||||
ConfigurationManager.LoadConfiguration();
|
||||
ConfigManager.LoadConfiguration();
|
||||
|
||||
// Load biomes
|
||||
Logger.Info("Loading biomes...");
|
||||
|
@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using TransportGame.Business;
|
||||
using TransportGame.Model;
|
||||
using TransportGame.Model.Road;
|
||||
using TransportGame.Utils;
|
||||
@ -16,13 +17,19 @@ namespace TransportGame.Unity
|
||||
class RoadMeshGenerator
|
||||
{
|
||||
#region Constants
|
||||
|
||||
private const float SidewalkWidth = .8f;
|
||||
private const float LaneWidth = 1f;
|
||||
|
||||
private const float RaiseOffset = 0.8f; // Raises road above actual height of terrain
|
||||
private const float SidewalkHeight = 0.1f; // Height of sidewalk
|
||||
private const float SideCoverHeight = 0.1f; // On the sides of the roads, so that we can't see the road from the underside
|
||||
private float SidewalkWidth { get { return ConfigManager.Roadgen.SidewalkWidth; } }
|
||||
|
||||
private float LaneWidth { get { return ConfigManager.Roadgen.LaneWidth; } }
|
||||
|
||||
// Raises road above actual height of terrain
|
||||
private float RaiseOffset { get { return ConfigManager.Roadgen.RaiseOffset; } }
|
||||
|
||||
// Height of sidewalk
|
||||
private float SidewalkHeight { get { return ConfigManager.Roadgen.SidewalkHeight; } }
|
||||
|
||||
// On the sides of the roads, so that we can't see the road from the underside
|
||||
private float SideCoverHeight { get { return ConfigManager.Roadgen.SideCoverHeight; } }
|
||||
|
||||
#endregion
|
||||
|
||||
|
Reference in New Issue
Block a user