Kerbal Space Program
1.12.4
|
Class that manages a KSPBaseField that is being driven by ModuleRobiticController More...
Public Member Functions | |
void | AlignCurveEnds () |
Align the curve endpoint value and tangent with the start one to help smooth looping behaviour More... | |
void | ClampAllPointValues () |
Clamp all the point values inside the limits More... | |
void | ClampPointValue (int index) |
Clamp all the point values inside the limits More... | |
ControlledAxis (ControlledAxis sourceAxis) | |
ControlledAxis (Part part, PartModule module, BaseAxisField axisField, ModuleRoboticController controller) | |
ControlledAxis () | |
void | InvertCurve () |
Invert the timeValue curve between the min and max axis More... | |
void | PresetFlat () |
Set the axis to be a flat line at the mid-point More... | |
void | PresetRevSaw (float cycles, float phase) |
Set the axis to be a reverse sawtooth wave More... | |
void | PresetSaw (float cycles, float phase) |
Set the axis to be a sawtooth wave More... | |
void | PresetSine (float cycles, float phase) |
Set the axis to be a sine wave More... | |
void | PresetSquare (float cycles, float phase) |
Set the axis to be a square wave More... | |
void | PresetTriangle (float cycles, float phase) |
Set the axis to be a triangle wave More... | |
void | RescaleCurveTime (float adjustmentRatio, float minSpace=0.01f) |
Scale the time axis of the points in a curve without changing the length More... | |
void | ReverseCurve () |
Reverse the timeValue curve direction More... | |
void | UpdateFieldValue (float time, float valueMultiple=1f, bool updateSymmetryPartners=true) |
Update the field to a new value based on the time provided More... | |
void | UpdatePreset (float cycles, float phase) |
Set the axis to be a reverse sawtooth wave More... | |
void | UpdateSoftLimits (Vector2 newLimits, bool updateSymmetryPartners=true) |
Public Member Functions inherited from Expansions.Serenity.ControlledBase | |
void | ChangeSymmetryMaster (Part newPart) |
Change the part that is listed as the one this axis is connected to to be another of its symmetry partners More... | |
void | Load (ConfigNode node) |
void | Save (ConfigNode node) |
void | SetPartNickName (string newNickName) |
Public Attributes | |
FloatCurve | timeValue |
curve of value vs time - time is a 0->1 More... | |
Protected Member Functions | |
override void | AddSymmetryPart (Part part) |
Called by base class when rebuilding symmetry list More... | |
override void | ClearSymmetryLists () |
Called by base class to clear different list types in child classes More... | |
override bool | OnAssignReferenceVars () |
Update all the reference vars More... | |
override bool | OnChangeSymmetryMaster (Part newPart, out uint oldPartId) |
Change the part that is listed as the one this axis is connected to to be another of its symmetry partners More... | |
override void | OnLoad (ConfigNode node) |
override void | OnSave (ConfigNode node) |
Properties | |
BaseAxisField | AxisField [get, set] |
Reference to Field for this axis More... | |
float | axisMax [get] |
maximum value for the Axis More... | |
float | axisMin [get] |
minimum value for the Axis More... | |
Properties inherited from Expansions.Serenity.ControlledBase | |
ModuleRoboticController | Controller [get, set] |
Reference to Controller for this axis More... | |
PartModule | Module [get, set] |
Reference to PartModule for this axis More... | |
Part | Part [get, set] |
Reference to part for this axis More... | |
string | PartNickName [get] |
friendly text for a controlled axis More... | |
uint | PartPersistentId [get] |
Helper to get the part persistentId More... | |
uint | PersistentActionId [get] |
List< Part > | SymmetryParts [get] |
The parts that are in symmetry with this one More... | |
Class that manages a KSPBaseField that is being driven by ModuleRobiticController
|
inline |
|
inline |
|
inline |
|
inlineprotectedvirtual |
Called by base class when rebuilding symmetry list
part | THe part to add to the symmetry list |
Implements Expansions.Serenity.ControlledBase.
|
inline |
Align the curve endpoint value and tangent with the start one to help smooth looping behaviour
|
inline |
Clamp all the point values inside the limits
|
inline |
Clamp all the point values inside the limits
|
inlineprotectedvirtual |
Called by base class to clear different list types in child classes
Implements Expansions.Serenity.ControlledBase.
|
inline |
Invert the timeValue curve between the min and max axis
|
inlineprotectedvirtual |
Update all the reference vars
Implements Expansions.Serenity.ControlledBase.
|
inlineprotectedvirtual |
Change the part that is listed as the one this axis is connected to to be another of its symmetry partners
Call this BEFORE the master part is deleted to maintain the symmetry groups
newPart | Part that will take over the role as symmetry master |
Implements Expansions.Serenity.ControlledBase.
|
inlineprotectedvirtual |
Implements Expansions.Serenity.ControlledBase.
|
inlineprotectedvirtual |
Implements Expansions.Serenity.ControlledBase.
|
inline |
Set the axis to be a flat line at the mid-point
|
inline |
Set the axis to be a reverse sawtooth wave
cycles | How many times should the pattern repeat across the duartion |
phase | How far should the starting point be offset as a percentage |
|
inline |
Set the axis to be a sawtooth wave
cycles | How many times should the pattern repeat across the duartion |
phase | How far should the starting point be offset as a percentage |
|
inline |
Set the axis to be a sine wave
cycles | How many times should the pattern repeat across the duartion |
phase | How far should the starting point be offset as a percentage |
|
inline |
Set the axis to be a square wave
cycles | How many times should the pattern repeat across the duartion |
phase | How far should the starting point be offset as a percentage |
|
inline |
Set the axis to be a triangle wave
cycles | How many times should the pattern repeat across the duartion |
phase | How far should the starting point be offset as a percentage |
|
inline |
Scale the time axis of the points in a curve without changing the length
adjustmentRatio | How to calculate the new position of each keyframes timeValue |
minSpace | The min distance between points when the adjustmentRatio is spreading the points apart and we hit the end of the curve |
|
inline |
Reverse the timeValue curve direction
|
inline |
Update the field to a new value based on the time provided
time | Time along the stored floatcurve |
valueMultiple | A multiplier in case the provided value needs scaling |
updateSymmetryPartners | True to update the symmetry partners as wellas this one |
|
inline |
Set the axis to be a reverse sawtooth wave
cycles | How many times should the pattern repeat across the duartion |
phase | How far should the starting point be offset as a percentage |
|
inline |
FloatCurve Expansions.Serenity.ControlledAxis.timeValue |
curve of value vs time - time is a 0->1
|
getset |
Reference to Field for this axis
|
get |
maximum value for the Axis
|
get |
minimum value for the Axis