ArcadeGliderStep stepArcadeGliderFlight(const ArcadeGliderTuning &tuning, const ArcadeGliderInput &input)
Advances the arcade glider flight model by one step.
Persistent state carried between arcade glider simulation steps.
float stallRecoveryTimer
Time accumulated toward stall recovery.
bool stalled
True while the glider is stalled.
Output values from one arcade glider simulation step.
glm::vec3 velocity
Updated world-space velocity.
bool stalled
True while the glider is stalled after this step.
float climbMomentumDelta
Momentum spent on climb this step.
float verticalVelocity
Vertical velocity after the step.
float windMomentumDelta
Momentum gained or lost from wind this step.
float stallRecoveryTimer
Updated stall recovery timer.
float windAlignment
Alignment between glide direction and wind direction.
float dragDelta
Momentum lost to drag this step.
float diveDemand
Requested dive amount derived from input.
float momentum
Horizontal speed component used as glide momentum.
glm::vec3 glideDirection
Updated normalized glide direction.
float climbDemand
Requested climb amount derived from input.
bool recoveredStall
True on the first step that exits stall.
bool enteredStall
True on the first step that enters stall.
Stores the config values for the glider. Can be used to change the flight behavior of the glider move...
float windDiminishingSpeed