Kerbal Space Program
1.12.4
|
Gizmo used to maniuplate orbits in the MissionEditor This class is a modified version of the stock Maneuver gizmo and was modified to work within the bounds of the mission editor only More...
Public Member Functions | |
void | ChangeToGlobalMode () |
Changes the gizmo to global mode More... | |
void | ChangeToPointMode () |
Changes the gizmo to point mode More... | |
OrbitGizmo | Create (Vector3 position, Camera cam, Transform parent) |
Creates a new orbit gizmo More... | |
delegate void | HandlesUpdatedCallback (Vector3d dV, double UT) |
override void | OnMouseDrag () |
override void | OnMouseUp () |
Public Member Functions inherited from ManeuverGizmoBase | |
void | ChangeToButtonMode () |
MonoBehaviour | GetInstance () |
virtual void | OnMouseDown () |
virtual void | OnMouseEnter () |
virtual void | OnMouseExit () |
virtual void | SetMouseOverGizmo (bool h) |
virtual void | Terminate () |
Protected Member Functions | |
override void | OnAntinormalUpdate (float value) |
override void | OnNormalUpdate (float value) |
override void | OnProgradeUpdate (float value) |
override void | OnRadialInUpdate (float value) |
override void | OnRadialOutUpdate (float value) |
override void | OnRetrogradeUpdate (float value) |
override void | Start () |
Protected Member Functions inherited from ManeuverGizmoBase | |
virtual void | LateUpdate () |
Protected Attributes | |
OrbitGizmoMode | mode = OrbitGizmoMode.Point |
Protected Attributes inherited from ManeuverGizmoBase | |
bool | buttonMode |
Material | grabMat |
bool | hover |
flags whether the mouse is over the gizmo center More... | |
bool | mouseOverGizmo = false |
flags whether the mouse is over any part of the gizmo (including handles) More... | |
Color | normal |
float | rootsLerpedScale |
float | rootsScale |
Properties | |
OrbitGizmoMode | GizmoMode [get] |
Returns the current mode of the orbit gizmo More... | |
Properties inherited from ManeuverGizmoBase | |
bool | MouseOverGizmo [get] |
Additional Inherited Members | |
Static Public Attributes inherited from ManeuverGizmoBase | |
static bool | HasMouseFocus |
Gizmo used to maniuplate orbits in the MissionEditor This class is a modified version of the stock Maneuver gizmo and was modified to work within the bounds of the mission editor only
|
inline |
Changes the gizmo to global mode
|
inline |
Changes the gizmo to point mode
|
inline |
Creates a new orbit gizmo
position | Orbit inital location |
cam | Reference camera used for calculations |
parent | Gizmo parent |
delegate void Expansions.Missions.Editor.OrbitGizmo.HandlesUpdatedCallback | ( | Vector3d | dV, |
double | UT | ||
) |
|
inlineprotectedvirtual |
Reimplemented from ManeuverGizmoBase.
|
inlinevirtual |
Reimplemented from ManeuverGizmoBase.
|
inlinevirtual |
Reimplemented from ManeuverGizmoBase.
|
inlineprotectedvirtual |
Reimplemented from ManeuverGizmoBase.
|
inlineprotectedvirtual |
Reimplemented from ManeuverGizmoBase.
|
inlineprotectedvirtual |
Reimplemented from ManeuverGizmoBase.
|
inlineprotectedvirtual |
Reimplemented from ManeuverGizmoBase.
|
inlineprotectedvirtual |
Reimplemented from ManeuverGizmoBase.
|
inlineprotectedvirtual |
Reimplemented from ManeuverGizmoBase.
float Expansions.Missions.Editor.OrbitGizmo.eccMultiplier = 0.005f |
Global gizmo eccentricity handle sensitivity multiplier
GAPCelestialBodyState_Orbit Expansions.Missions.Editor.OrbitGizmo.gapOrbit |
Reference to the celestial body orbit gap
GameObject Expansions.Missions.Editor.OrbitGizmo.globalHandles |
Reference to the global gizmo root gameobject
SpriteButton Expansions.Missions.Editor.OrbitGizmo.globalModeBtn |
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleAntiSMA |
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleEccIn |
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleEccOut |
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleIncClockwise |
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleIncCounter |
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleSMA |
float Expansions.Missions.Editor.OrbitGizmo.incMultiplier = 0.3f |
Global inclicnation handle sensitivity multiplier
bool Expansions.Missions.Editor.OrbitGizmo.isDragging = false |
|
protected |
HandlesUpdatedCallback Expansions.Missions.Editor.OrbitGizmo.OnGlobalGizmoUpdated = (Vector3d dV, double UT) => { } |
Event triggered when the global gizmo value is updated
Callback Expansions.Missions.Editor.OrbitGizmo.OnOrbitReset = () => { } |
Event triggered when the orbit reset button is clicked
HandlesUpdatedCallback Expansions.Missions.Editor.OrbitGizmo.OnPointGizmoUpdated = (Vector3d dV, double UT) => { } |
Event triggered when the point gizmo value is updated
GameObject Expansions.Missions.Editor.OrbitGizmo.pointHandles |
Reference to the point gizmo root gameobject
SpriteButton Expansions.Missions.Editor.OrbitGizmo.pointModeBtn |
SpriteButton Expansions.Missions.Editor.OrbitGizmo.resetBtn |
float Expansions.Missions.Editor.OrbitGizmo.smaMultiplier = 500.0f |
Global gizmo semi mayour axis handle sensitivity multiplier
|
get |
Returns the current mode of the orbit gizmo