ClassicCityBuilderKit 1.8.8
|
applies height to objects by changing their layer when there is a height override that fits one of the Heights
used in the urban tunnel demo to change cars in the underground to the underground layer
Classes | |
class | LayerHeight |
Public Member Functions | |
float | GetHeight (Vector3 position, PathType pathType=PathType.Map) |
calculates height at given world position | |
void | ApplyHeight (Transform transform, Vector3 position, PathType pathType=PathType.Map, float? overrideValue=null) |
applies heigth to the passed transform the transforms position may be used to calculate the height | |
Public Attributes | |
int | DefaultLayer |
LayerHeight[] | Heights |
|
inline |
applies heigth to the passed transform
the transforms position may be used to calculate the height
transform | the transform that will be changed |
pathType | height may be different when moving on a road for example |
overrideValue | regular height calculation may not always apply, for example on bridges(which use IOverrideHeight) |
Implements CityBuilderCore.IGridHeights.
|
inline |
calculates height at given world position
position | absolute world position |
pathType | height may be different when moving on a road for example |
Implements CityBuilderCore.IGridHeights.