Table of Contents

Class ManipulationWidget

Namespace
KSP.OAB
Assembly
Assembly-CSharp.dll
public class ManipulationWidget : KerbalMonoBehaviour
Inheritance
ManipulationWidget
Derived
Inherited Members
Extension Methods

Constructors

ManipulationWidget()

public ManipulationWidget()

Fields

CurCamera

public Camera CurCamera

Field Value

Camera

OriginalScale

public Vector3 OriginalScale

Field Value

Vector3

_canSnapRotation

protected bool _canSnapRotation

Field Value

bool

_canSnapTranslation

protected bool _canSnapTranslation

Field Value

bool

_controlledPartIsStackAttached

protected bool _controlledPartIsStackAttached

Field Value

bool

_scaleWidgetToPreserveScreenSize

protected bool _scaleWidgetToPreserveScreenSize

Field Value

bool

_sizeOnScreenMultiplier

protected float _sizeOnScreenMultiplier

Field Value

float

bestManipulation

protected ManipulationWidget.ManipulateType bestManipulation

Field Value

ManipulationWidget.ManipulateType

bestObj

protected GameObject bestObj

Field Value

GameObject

controlledPart

protected IObjectAssemblyPart controlledPart

Field Value

IObjectAssemblyPart

curManipulation

protected ManipulationWidget.ManipulateType curManipulation

Field Value

ManipulationWidget.ManipulateType

curPos

protected Vector3 curPos

Field Value

Vector3

dragSpeedScale

public float dragSpeedScale

Field Value

float

eventsBuilder

protected ObjectAssemblyBuilderEvents eventsBuilder

Field Value

ObjectAssemblyBuilderEvents

input

protected ObjectAssemblyInputHandler input

Field Value

ObjectAssemblyInputHandler

isLocalFrame

protected bool isLocalFrame

Field Value

bool

lastPos

protected Vector3 lastPos

Field Value

Vector3

lastTranslateMousePos

protected Vector3 lastTranslateMousePos

Field Value

Vector3

manipulateDir

protected Vector3 manipulateDir

Field Value

Vector3

queuedMove

protected Vector3 queuedMove

Field Value

Vector3

rotPlane

protected Plane rotPlane

Field Value

Plane

rotStartMousePos

protected Vector3 rotStartMousePos

Field Value

Vector3

rotStartRot

protected Quaternion rotStartRot

Field Value

Quaternion

siblingRotStartDictionary

protected Dictionary<IObjectAssemblyPart, Quaternion> siblingRotStartDictionary

Field Value

Dictionary<IObjectAssemblyPart, Quaternion>

snapThreshold

protected float snapThreshold

Field Value

float

snapThresholdFine

protected float snapThresholdFine

Field Value

float

startPt

protected Vector3 startPt

Field Value

Vector3

stats

protected OABSessionInformation stats

Field Value

OABSessionInformation

toolActive

protected bool toolActive

Field Value

bool

translateLimits

protected Vector3 translateLimits

Field Value

Vector3

translateRefPartBounds

protected Bounds translateRefPartBounds

Field Value

Bounds

translateStartPos

protected Vector3 translateStartPos

Field Value

Vector3

vNew

protected Vector3 vNew

Field Value

Vector3

vOld

protected Vector3 vOld

Field Value

Vector3

Properties

IsRotatingOrDragging

public bool IsRotatingOrDragging { get; }

Property Value

bool

Methods

CheckMouse()

protected virtual void CheckMouse()

Initialize(ObjectAssemblyBuilderEvents, OABSessionInformation, ObjectAssemblyInputHandler)

public void Initialize(ObjectAssemblyBuilderEvents events, OABSessionInformation stats, ObjectAssemblyInputHandler input)

Parameters

events ObjectAssemblyBuilderEvents
stats OABSessionInformation
input ObjectAssemblyInputHandler

IsManipulating()

public bool IsManipulating()

Returns

bool

OnDestroy()

public void OnDestroy()

OnUpdate()

protected virtual void OnUpdate()

SetControlledPart(IObjectAssemblyPart)

public virtual void SetControlledPart(IObjectAssemblyPart part)

Parameters

part IObjectAssemblyPart

SetToolActive(bool)

public void SetToolActive(bool Active)

Parameters

Active bool

UpdateClonePosRots(IObjectAssemblyPart)

public void UpdateClonePosRots(IObjectAssemblyPart targetPart)

Parameters

targetPart IObjectAssemblyPart

UpdateWidgetSizeOnCamera()

public void UpdateWidgetSizeOnCamera()