Class ManipulationWidget
- Namespace
- KSP.OAB
- Assembly
- Assembly-CSharp.dll
public class ManipulationWidget : KerbalMonoBehaviour
- Inheritance
-
ManipulationWidget
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
public ManipulationWidget()
Fields
Field Value
- Camera
public Vector3 OriginalScale
Field Value
- Vector3
protected bool _canSnapRotation
Field Value
- bool
protected bool _canSnapTranslation
Field Value
- bool
protected bool _controlledPartIsStackAttached
Field Value
- bool
protected bool _scaleWidgetToPreserveScreenSize
Field Value
- bool
protected float _sizeOnScreenMultiplier
Field Value
- float
protected ManipulationWidget.ManipulateType bestManipulation
Field Value
- ManipulationWidget.ManipulateType
protected GameObject bestObj
Field Value
- GameObject
protected IObjectAssemblyPart controlledPart
Field Value
- IObjectAssemblyPart
protected ManipulationWidget.ManipulateType curManipulation
Field Value
- ManipulationWidget.ManipulateType
Field Value
- Vector3
public float dragSpeedScale
Field Value
- float
protected ObjectAssemblyBuilderEvents eventsBuilder
Field Value
- ObjectAssemblyBuilderEvents
protected ObjectAssemblyInputHandler input
Field Value
- ObjectAssemblyInputHandler
protected bool isLocalFrame
Field Value
- bool
protected Vector3 lastPos
Field Value
- Vector3
protected Vector3 lastTranslateMousePos
Field Value
- Vector3
protected Vector3 manipulateDir
Field Value
- Vector3
protected Vector3 queuedMove
Field Value
- Vector3
Field Value
- Plane
protected Vector3 rotStartMousePos
Field Value
- Vector3
protected Quaternion rotStartRot
Field Value
- Quaternion
protected Dictionary<IObjectAssemblyPart, Quaternion> siblingRotStartDictionary
Field Value
- Dictionary<IObjectAssemblyPart, Quaternion>
protected float snapThreshold
Field Value
- float
protected float snapThresholdFine
Field Value
- float
protected Vector3 startPt
Field Value
- Vector3
protected OABSessionInformation stats
Field Value
- OABSessionInformation
protected bool toolActive
Field Value
- bool
protected Vector3 translateLimits
Field Value
- Vector3
protected Bounds translateRefPartBounds
Field Value
- Bounds
protected Vector3 translateStartPos
Field Value
- Vector3
Field Value
- Vector3
Field Value
- Vector3
Properties
public bool IsRotatingOrDragging { get; }
Property Value
- bool
Methods
protected virtual void CheckMouse()
public void Initialize(ObjectAssemblyBuilderEvents events, OABSessionInformation stats, ObjectAssemblyInputHandler input)
Parameters
events ObjectAssemblyBuilderEvents
stats OABSessionInformation
input ObjectAssemblyInputHandler
public bool IsManipulating()
Returns
- bool
protected virtual void OnUpdate()
public virtual void SetControlledPart(IObjectAssemblyPart part)
Parameters
part IObjectAssemblyPart
public void SetToolActive(bool Active)
Parameters
Active bool
public void UpdateClonePosRots(IObjectAssemblyPart targetPart)
Parameters
targetPart IObjectAssemblyPart
public void UpdateWidgetSizeOnCamera()