C# Class RemoteTech.FlightComputer.SteeringHelper

显示文件 Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Public Methods

Method Description
GetVesselTorque ( Vessel vessel ) : Vector3

Get the total torque for a vessel.

InvertNoNaN ( this vector ) : UnityEngine.Vector3d
Pow ( UnityEngine.Vector3d vector, float exponent ) : UnityEngine.Vector3d
SteerShipToward ( Quaternion target, FlightCtrlState c, FlightComputer fc, bool ignoreRoll ) : void

Automatically guides the ship to face a desired orientation

SwapYZ ( UnityEngine.Vector3d input ) : UnityEngine.Vector3d

Private Methods

Method Description
SetPIDParameters ( FlightComputer fc, UnityEngine.Vector3d TfV, double kdFactor, double kpFactor, double kiFactor ) : void

Method Details

GetVesselTorque() public static method

Get the total torque for a vessel.
public static GetVesselTorque ( Vessel vessel ) : Vector3
vessel Vessel The vessel from which ot get the total torque.
return Vector3

InvertNoNaN() public static method

public static InvertNoNaN ( this vector ) : UnityEngine.Vector3d
vector this
return UnityEngine.Vector3d

Pow() public static method

public static Pow ( UnityEngine.Vector3d vector, float exponent ) : UnityEngine.Vector3d
vector UnityEngine.Vector3d
exponent float
return UnityEngine.Vector3d

SteerShipToward() public static method

Automatically guides the ship to face a desired orientation
public static SteerShipToward ( Quaternion target, FlightCtrlState c, FlightComputer fc, bool ignoreRoll ) : void
target UnityEngine.Quaternion The desired orientation
c FlightCtrlState The FlightCtrlState for the current vessel.
fc FlightComputer The flight computer carrying out the slew
ignoreRoll bool [optional] to ignore the roll
return void

SwapYZ() public static method

public static SwapYZ ( UnityEngine.Vector3d input ) : UnityEngine.Vector3d
input UnityEngine.Vector3d
return UnityEngine.Vector3d