Gravity Engine 2 5.1
|
Key control to rotate camera boom using Arrow keys for rotation and < > keys for zoom. More...
Public Member Functions | |
void | BoomLengthReset (float len) |
The "boom" is the local position of the transform holding the Camera. | |
Public Attributes | |
bool | arrowKeys = true |
bool | enableMouse = true |
Rate of spin (degrees per Update) | |
GSDisplay | gsDisplay |
bool | ijklKeys = true |
bool | interactive = true |
bool | macArrowKeys = true |
float | mouseSpinRate = 3f |
float | mouseWheelZoom = 0.5f |
float | spinRate = 1f |
float | zoomSize = 1f |
Key control to rotate camera boom using Arrow keys for rotation and < > keys for zoom.
Assumes the Main Camara is a child of the object holding this script with a local position offset (the boom length) and oriented to point at this object. Then pressing the keys will spin the camera around the object this script is attached to.
If a LineScalar is present, zoom change call will be made to the LineScalar.
void GravityEngine2.GESphereCamera.BoomLengthReset | ( | float | len | ) |
The "boom" is the local position of the transform holding the Camera.
By convention this is set to look down on the XZ orbital plane from Y, so the length is all in the y component of the local position.
len |