C# Class SSTUTools.SRBNozzleData

Data for an srb nozzle, including gimbal adjustment data and ISP curve adjustment.
Inheritance: SSTUTools.SingleModelData
Datei anzeigen Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
gimbalAdjustmentRange float
gimbalDefaultOrientation UnityEngine.Quaternion
gimbalFlightRange float
gimbalTransformName String
thrustTransformName String

Public Methods

Method Description
SRBNozzleData ( ConfigNode node ) : System
getGimbalTransform ( ) : Transform
getThrustTransform ( ) : Transform
setupTransformDefaults ( Transform partThrustTransform, Transform partGimbalTransform ) : void

Positions the input thrust transform as a child of the models existing gimbal transform in the same orientation as the models existing thrust transform.

updateGimbalRotation ( Vector3 worldAxis, float newRotation ) : void

Resets the gimbal to its default orientation, and then applies newRotation to it as a direct rotation around the input world axis

Method Details

SRBNozzleData() public method

public SRBNozzleData ( ConfigNode node ) : System
node System.ConfigNode
return System

getGimbalTransform() public method

public getGimbalTransform ( ) : Transform
return UnityEngine.Transform

getThrustTransform() public method

public getThrustTransform ( ) : Transform
return UnityEngine.Transform

setupTransformDefaults() public method

Positions the input thrust transform as a child of the models existing gimbal transform in the same orientation as the models existing thrust transform.
public setupTransformDefaults ( Transform partThrustTransform, Transform partGimbalTransform ) : void
partThrustTransform UnityEngine.Transform
partGimbalTransform UnityEngine.Transform
return void

updateGimbalRotation() public method

Resets the gimbal to its default orientation, and then applies newRotation to it as a direct rotation around the input world axis
public updateGimbalRotation ( Vector3 worldAxis, float newRotation ) : void
worldAxis Vector3
newRotation float
return void

Property Details

gimbalAdjustmentRange public_oe property

public float gimbalAdjustmentRange
return float

gimbalDefaultOrientation public_oe property

public Quaternion,UnityEngine gimbalDefaultOrientation
return UnityEngine.Quaternion

gimbalFlightRange public_oe property

public float gimbalFlightRange
return float

gimbalTransformName public_oe property

public String gimbalTransformName
return String

thrustTransformName public_oe property

public String thrustTransformName
return String