Difference between revisions of "API:FlightCtrlState"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "{{class|name=FlightCtrlState|summary=FlightCtrlState objects are in charge of controlling vessels. User input can be acquired through the FlightCtrlState object of the current...")
 
m
Line 1: Line 1:
{{class|name=FlightCtrlState|summary=FlightCtrlState objects are in charge of controlling vessels. User input can be acquired through the FlightCtrlState object of the current vessel. Modifications to the object will overwrite user input, and can lead to autopiloting.Below are some useful members of class FlightCtrlState. Note that this list is far from complete.}}{{FieldsStart}}{{Field|type=float|name=mainThrottle|desc=The current throttle, ranging from 0 to 1.}}{{Field|type=float|name=pitch|desc=-1(pitch down) ~ 1(pitch up)}}{{Field|type=float|name=yaw|desc=-1(yaw left) ~ 1(yaw right)}}{{Field|type=float|name=roll|desc=-1(roll left) ~ 1(roll right)}}{{Field|type=float|name=X|desc=-1(translate right) ~ 1(translate left)}}{{Field|type=float|name=Y|desc=-1(translate down) ~ 1(translate up)}}{{Field|type=float|name=Z|desc=-1(translate forward) ~ 1(translate backward)}}{{Field|type=bool|name=killRot|desc=Responsible for SAS/ASAS toggle before v0.18. It is now obsolete. SAS is now controlled by the SAS action group.}}{{FieldsEnd}}{{MethodsStart}}{{Method|returntype=void|returndesc=|name=CopyFrom|args={{arg|FlightCtrlState|st}}|desc=}}{{MethodsEnd}}[[Category:Community API Documentation]]
+
{{class|name=FlightCtrlState|summary=FlightCtrlState objects are in charge of controlling vessels. User input can be acquired through the FlightCtrlState object of the current vessel. Modifications to the object will overwrite user input, and can lead to autopiloting. Below are some useful members of class FlightCtrlState. Note that this list is far from complete.}}{{FieldsStart}}{{Field|type=float|name=mainThrottle|desc=The current throttle, ranging from 0 to 1.}}{{Field|type=float|name=pitch|desc=-1(pitch down) ~ 1(pitch up)}}{{Field|type=float|name=yaw|desc=-1(yaw left) ~ 1(yaw right)}}{{Field|type=float|name=roll|desc=-1(roll left) ~ 1(roll right)}}{{Field|type=float|name=X|desc=-1(translate right) ~ 1(translate left)}}{{Field|type=float|name=Y|desc=-1(translate down) ~ 1(translate up)}}{{Field|type=float|name=Z|desc=-1(translate forward) ~ 1(translate backward)}}{{Field|type=bool|name=killRot|desc=Responsible for SAS/ASAS toggle before v0.18. It is now obsolete. SAS is now controlled by the SAS action group.}}{{FieldsEnd}}{{MethodsStart}}{{Method|returntype=void|returndesc=|name=CopyFrom|args={{arg|FlightCtrlState|st}}|desc=}}{{MethodsEnd}}[[Category:Community API Documentation]]

Revision as of 03:18, 19 December 2012

FlightCtrlState Class

FlightCtrlState objects are in charge of controlling vessels. User input can be acquired through the FlightCtrlState object of the current vessel. Modifications to the object will overwrite user input, and can lead to autopiloting. Below are some useful members of class FlightCtrlState. Note that this list is far from complete.

== Fields ==

The following is a list of publically-accessible fields in FlightCtrlState. This includes protected items, which can be accessed by subclasses.

Signature - float mainThrottle - float pitch - float yaw - float roll - float X - float Y - float Z - bool killRot }== Methods ==

The following are methods included in FlightCtrlState.

Signature - void CopyFrom(FlightCtrlState st) }