C# Class kOS.SteeringHelper

Show file Open project: Nivekk/KOS Class Usage Examples

Public Properties

Property Type Description
integral UnityEngine.Vector3d
prev_err UnityEngine.Vector3d

Public Methods

Method Description
GetEffectiveInertia ( Vessel vessel, UnityEngine.Vector3d torque ) : UnityEngine.Vector3d
GetThrustTorque ( Part p, Vessel vessel ) : double
GetTorque ( Vessel vessel, float thrust ) : UnityEngine.Vector3d
Inverse ( UnityEngine.Vector3d input ) : UnityEngine.Vector3d
KillRotation ( FlightCtrlState c, Vessel vessel ) : void
Pow ( UnityEngine.Vector3d v3d, float exponent ) : UnityEngine.Vector3d
Sign ( UnityEngine.Vector3d vector ) : UnityEngine.Vector3d
SteerShipToward ( Direction targetDir, FlightCtrlState c, Vessel vessel ) : void
SwapYZ ( UnityEngine.Vector3d input ) : UnityEngine.Vector3d

Private Methods

Method Description
ReduceAngles ( UnityEngine.Vector3d input ) : UnityEngine.Vector3d
averageVector3d ( UnityEngine.Vector3d vectorArray, UnityEngine.Vector3d newVector, int n ) : UnityEngine.Vector3d

Method Details

GetEffectiveInertia() public static method

public static GetEffectiveInertia ( Vessel vessel, UnityEngine.Vector3d torque ) : UnityEngine.Vector3d
vessel Vessel
torque UnityEngine.Vector3d
return UnityEngine.Vector3d

GetThrustTorque() public static method

public static GetThrustTorque ( Part p, Vessel vessel ) : double
p Part
vessel Vessel
return double

GetTorque() public static method

public static GetTorque ( Vessel vessel, float thrust ) : UnityEngine.Vector3d
vessel Vessel
thrust float
return UnityEngine.Vector3d

Inverse() public static method

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

KillRotation() public static method

public static KillRotation ( FlightCtrlState c, Vessel vessel ) : void
c FlightCtrlState
vessel Vessel
return void

Pow() public static method

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

Sign() public static method

public static Sign ( UnityEngine.Vector3d vector ) : UnityEngine.Vector3d
vector UnityEngine.Vector3d
return UnityEngine.Vector3d

SteerShipToward() public static method

public static SteerShipToward ( Direction targetDir, FlightCtrlState c, Vessel vessel ) : void
targetDir Direction
c FlightCtrlState
vessel Vessel
return void

SwapYZ() public static method

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

Property Details

integral public static property

public static Vector3d,UnityEngine integral
return UnityEngine.Vector3d

prev_err public static property

public static Vector3d,UnityEngine prev_err
return UnityEngine.Vector3d