Gravity Engine 12.0
Unity Asset for Gravity
|
Public Member Functions | |
double[] | acceleration (double time, GravityState gravityState, ref double massKg) |
Determine the acceleration at the specified time for the provided gravity state. | |
double[] GEExternalAcceleration.acceleration | ( | double | time, |
GravityState | gravityState, | ||
ref double | massKg | ||
) |
Determine the acceleration at the specified time for the provided gravity state.
Mass at time t may also be returned in in a[3] by rocket engine implementations. This allows the per time slice mass to be passed back without additional overhead in time critical code.
This routine may also be called by trajectory prediction states, so implementations should not keep state.
time | |
gravityState | |
massKg (ref) |
Implemented in EarthAtmosphere, EarthRocket, MultiStageEngine, OneStageEngine, and RocketEngine.