ClassicCityBuilderKit 1.8.8
|
rotates transforms, 3d implementations might rotate 360° while isometric games may only mirror
Public Member Functions | |
void | SetRotation (Transform transform, Vector3 direction) |
adjusts a transform in order to visually reflect the direction it is facing | |
void | SetRotation (Transform transform, float rotation) |
adjusts a transform by a rotation in degrees | |
float | GetRotation (Vector3 direction) |
calculates a numeric rotation in degrees from a direction | |
Vector3 | GetDirection (float angle) |
calculates a direction from a numeric roation | |
Vector3 CityBuilderCore.IGridRotations.GetDirection | ( | float | angle | ) |
calculates a direction from a numeric roation
angle | rotation indegrees |
Implemented in CityBuilderCore.MapBase, and CityBuilderCore.Tests.DebugMap.
float CityBuilderCore.IGridRotations.GetRotation | ( | Vector3 | direction | ) |
calculates a numeric rotation in degrees from a direction
direction | direction the object is facing |
Implemented in CityBuilderCore.MapBase, and CityBuilderCore.Tests.DebugMap.
void CityBuilderCore.IGridRotations.SetRotation | ( | Transform | transform, |
float | rotation ) |
adjusts a transform by a rotation in degrees
transform | the transform that will be chaned |
rotation | the rotation in degrees |
Implemented in CityBuilderCore.MapBase, and CityBuilderCore.Tests.DebugMap.
void CityBuilderCore.IGridRotations.SetRotation | ( | Transform | transform, |
Vector3 | direction ) |
adjusts a transform in order to visually reflect the direction it is facing
transform | the transform that will be changed |
direction | the direction the entity moves or looks at |
Implemented in CityBuilderCore.MapBase, and CityBuilderCore.Tests.DebugMap.