Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
GEExternalAcceleration Interface Reference
Inheritance diagram for GEExternalAcceleration:
EarthAtmosphere EarthRocket RocketEngine MultiStageEngine OneStageEngine

Public Member Functions

double[] acceleration (double time, GravityState gravityState, ref double massKg)
 Determine the acceleration at the specified time for the provided gravity state.
 

Member Function Documentation

◆ acceleration()

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.

Parameters
time
gravityState
massKg (ref)
Returns

Implemented in EarthAtmosphere, EarthRocket, MultiStageEngine, OneStageEngine, and RocketEngine.


The documentation for this interface was generated from the following file: