|
ClassicCityBuilderKit 1.9.4
|
provides access to the current location of the players pointer
Public Member Functions | |
| Ray | GetRay (bool applyOffset=false) |
| creates a ray under the players mouse that points in the cameras direction can be used to check whats currently under the player pointer | |
| Vector3 | GetMousePosition (bool applyOffset=false) |
| calculates absolute world position on the map that the pointer is currently over | |
| Vector2 | GetMouseScreenPosition (bool applyOffset=false) |
| calculates the current position of the players pointer in screen coordinates | |
| Vector2Int | GetMouseGridPosition (bool applyOffset=false) |
| calculates the point on the map that the pointer is currently over | |
| Vector2Int CityBuilderCore.IMouseInput.GetMouseGridPosition | ( | bool | applyOffset = false | ) |
calculates the point on the map that the pointer is currently over
| applyOffset | whether the touch offset should be applied |
Implemented in CityBuilderCore.CameraController, and CityBuilderCore.CameraMouseInput.
| Vector3 CityBuilderCore.IMouseInput.GetMousePosition | ( | bool | applyOffset = false | ) |
calculates absolute world position on the map that the pointer is currently over
| applyOffset | whether the touch offset should be applied |
Implemented in CityBuilderCore.CameraController, and CityBuilderCore.CameraMouseInput.
| Vector2 CityBuilderCore.IMouseInput.GetMouseScreenPosition | ( | bool | applyOffset = false | ) |
calculates the current position of the players pointer in screen coordinates
| applyOffset | whether the touch offset should be applied |
Implemented in CityBuilderCore.CameraController, and CityBuilderCore.CameraMouseInput.
| Ray CityBuilderCore.IMouseInput.GetRay | ( | bool | applyOffset = false | ) |
creates a ray under the players mouse that points in the cameras direction
can be used to check whats currently under the player pointer
| applyOffset | whether the touch offset should be applied |
Implemented in CityBuilderCore.CameraController, and CityBuilderCore.CameraMouseInput.