The class that handles time warp.
More...
|
static void | SetRate (int rate_index, bool instant) |
| Changes the warp rate to either warpRates[rateIndex] or physicsWarpRates[rate_index], depending on whether WarpMode is HIGH or LOW. More...
|
|
|
float[] | altitudeLimits |
| Unused? CelestialBodies have their own sets of altitude limits. More...
|
|
int | current_rate_index |
|
int | maxModeSwitchRate_index |
|
int | maxPhysicsRate_index |
|
TimeWarp.Modes | Mode |
|
float[] | physicsWarpRates |
| The available physics warp rates. In 0.18.2 these are {1, 2, 3, 4} by default. You can modify the available rates by modifying this array. More...
|
|
GUIStyle | screenTextStyle |
|
float | textDuration |
|
ScreenSafeUISlideTab | timeQuadrantTab |
|
ScreenSafeUISliderButton | warpHighButton |
|
ScreenSafeUISliderButton | warpLowButton |
|
float[] | warpRates |
| The available regular warp rates. In 0.18.2 these are {1, 5, 10, 50, 100, 1000, 10000, 100000} by default. You can modify the available rates by modifying this array. More...
|
|
|
static float | CurrentRate [get] |
| The current warp rate, e.g. 50 if the current warp rate is 50x. This number may not be equal to one of the entries in warpRates, because KSP will smoothly interpolate between two warp rates over a period of time when you increase or decrease the warp. More...
|
|
static int | CurrentRateIndex [get] |
| The index of the current current warp rate in either warpRates or physicsWarpRates, depending on whether WarpMode is HIGH or LOW. Note that CurrentRate may not equal the warp rate indexed by CurrentRateIndex if KSP has not finished interpolating the last warp change. More...
|
|
static float | deltaTime [get] |
|
static float | fixedDeltaTime [get] |
| The time between FixedUpdate cycles (i.e., the time between physics steps). See the Unity FixedUpdate documentation for more details. More...
|
|
static float | MaxPhysicsRate [get] |
|
static TimeWarp.Modes | WarpMode [get] |
| Whether we are in regular warp mode or physics warp mode More...
|
|
The class that handles time warp.
Enumerator |
---|
HIGH |
Reguar time warp mode
|
LOW |
Physics warp mode
|
Presumably, gets the minimum altitude in meters above the sea level of the given body at which the given warp rate index is allowed.
- Parameters
-
i | A warp rate index |
body | The body in question |
- Returns
- The minimum altitude in meters at which that warp rate index is allowed
static void TimeWarp.SetRate |
( |
int |
rate_index, |
|
|
bool |
instant |
|
) |
| |
|
static |
Changes the warp rate to either warpRates[rateIndex] or physicsWarpRates[rate_index], depending on whether WarpMode is HIGH or LOW.
- Parameters
-
rate_index | The index of the desired new warp rate |
instant | If false, KSP will gradually smoothly adjust the warp rate up or down until it reaches the target. If true, the warp rate will change instantly. |
float [] TimeWarp.altitudeLimits |
Unused? CelestialBodies have their own sets of altitude limits.
int TimeWarp.current_rate_index |
Use this TimeWarp instance to access non-static members.
int TimeWarp.maxModeSwitchRate_index |
int TimeWarp.maxPhysicsRate_index |
float [] TimeWarp.physicsWarpRates |
The available physics warp rates. In 0.18.2 these are {1, 2, 3, 4} by default. You can modify the available rates by modifying this array.
GUIStyle TimeWarp.screenTextStyle |
float TimeWarp.textDuration |
ScreenSafeUISlideTab TimeWarp.timeQuadrantTab |
ScreenSafeUISliderButton TimeWarp.warpHighButton |
ScreenSafeUISliderButton TimeWarp.warpLowButton |
float [] TimeWarp.warpRates |
The available regular warp rates. In 0.18.2 these are {1, 5, 10, 50, 100, 1000, 10000, 100000} by default. You can modify the available rates by modifying this array.
float TimeWarp.CurrentRate |
|
staticget |
The current warp rate, e.g. 50 if the current warp rate is 50x. This number may not be equal to one of the entries in warpRates, because KSP will smoothly interpolate between two warp rates over a period of time when you increase or decrease the warp.
int TimeWarp.CurrentRateIndex |
|
staticget |
The index of the current current warp rate in either warpRates or physicsWarpRates, depending on whether WarpMode is HIGH or LOW. Note that CurrentRate may not equal the warp rate indexed by CurrentRateIndex if KSP has not finished interpolating the last warp change.
float TimeWarp.fixedDeltaTime |
|
staticget |
The time between FixedUpdate cycles (i.e., the time between physics steps). See the Unity FixedUpdate documentation for more details.
float TimeWarp.MaxPhysicsRate |
|
staticget |
Whether we are in regular warp mode or physics warp mode
The documentation for this class was generated from the following file: