Gravity Engine 2 3.0
Loading...
Searching...
No Matches
GravityEngine2.GESphereCamera Class Reference

Key control to rotate camera boom using Arrow keys for rotation and < > keys for zoom. More...

Inheritance diagram for GravityEngine2.GESphereCamera:

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 macArrowKeys = true
 
float mouseSpinRate = 3f
 
float mouseWheelZoom = 0.5f
 
float spinRate = 1f
 
float zoomSize = 1f
 

Detailed Description

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.

Member Function Documentation

◆ BoomLengthReset()

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.

Parameters
len

The documentation for this class was generated from the following file: