C# Класс RemoteTech.FlightComputer.SteeringHelper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SetPIDParameters ( FlightComputer fc, UnityEngine.Vector3d TfV, double kdFactor, double kpFactor, double kiFactor ) : void

Описание методов

GetVesselTorque() публичный статический Метод

Get the total torque for a vessel.
public static GetVesselTorque ( Vessel vessel ) : Vector3
vessel Vessel The vessel from which ot get the total torque.
Результат Vector3

InvertNoNaN() публичный статический Метод

public static InvertNoNaN ( this vector ) : UnityEngine.Vector3d
vector this
Результат UnityEngine.Vector3d

Pow() публичный статический Метод

public static Pow ( UnityEngine.Vector3d vector, float exponent ) : UnityEngine.Vector3d
vector UnityEngine.Vector3d
exponent float
Результат UnityEngine.Vector3d

SteerShipToward() публичный статический Метод

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
Результат void

SwapYZ() публичный статический Метод

public static SwapYZ ( UnityEngine.Vector3d input ) : UnityEngine.Vector3d
input UnityEngine.Vector3d
Результат UnityEngine.Vector3d