C# Class RemoteTech.FlightComputer.SteeringHelper

Afficher le fichier Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

GetVesselTorque() public static méthode

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

InvertNoNaN() public static méthode

public static InvertNoNaN ( this vector ) : UnityEngine.Vector3d
vector this
Résultat UnityEngine.Vector3d

Pow() public static méthode

public static Pow ( UnityEngine.Vector3d vector, float exponent ) : UnityEngine.Vector3d
vector UnityEngine.Vector3d
exponent float
Résultat UnityEngine.Vector3d

SteerShipToward() public static méthode

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
Résultat void

SwapYZ() public static méthode

public static SwapYZ ( UnityEngine.Vector3d input ) : UnityEngine.Vector3d
input UnityEngine.Vector3d
Résultat UnityEngine.Vector3d