Property | Type | Description | |
---|---|---|---|
BuildingStatic | GameObject, | ||
Instances | GameObject, | ||
Roads | GameObject, | ||
Splitting | bool |
Property | Type | Description | |
---|---|---|---|
AddBuildingMesh | void | ||
CheckValidPlacement | bool | ||
GetQuad | void | ||
GetRotation | float | ||
IntersectsRoad | bool | ||
RotateAroundPoint | Vector3 | ||
Start | void | ||
Update | void | ||
checkSegment | void |
Method | Description | |
---|---|---|
Clear ( ) : void |
clears all buildings and their objects
|
|
PopulateClick ( ) : void |
Flips the building generation on
|
Method | Description | |
---|---|---|
AddBuildingMesh ( Building, building ) : void |
Adds a building mesh
|
|
CheckValidPlacement ( Building, building ) : bool |
check if new building placement is ok
|
|
GetQuad ( Vector3 vertices, int &last, int &triangles, Vector3 &normals, Vector2 &uvs ) : void |
construct a building quad given 4 points and last indice
|
|
GetRotation ( Vector3 segDir ) : float |
get 360 rotation of vector
|
|
IntersectsRoad ( Building, building ) : bool |
check if a given building intersecs a road
|
|
RotateAroundPoint ( Vector3 point, Vector3 pivot, Quaternion, angle ) : Vector3 | ||
Start ( ) : void | ||
Update ( ) : void | ||
checkSegment ( RoadSegment, segment ) : void |
evaluate segment for potential building placement
|