1
0
Fork 0

Update the model manager after the event manager, so that model

coordinates that were set relative to the aircraft's position
are picked up before the view update rather than the next cycle.
This avoids ugly fluttering of "passengers" at higher speed.
This commit is contained in:
mfranz 2008-11-19 07:46:10 +00:00
parent 292d1d52cf
commit 54744f58e0

View file

@ -177,7 +177,6 @@ void fgUpdateTimeDepCalcs() {
// do nothing, fdm isn't inited yet
}
globals->get_model_mgr()->update(delta_time_sec);
globals->get_aircraft_model()->update(delta_time_sec);
// Update solar system
@ -538,6 +537,10 @@ static void fgMainLoop( void ) {
// run Nasal's settimer() loops right before the view manager
globals->get_event_mgr()->update(delta_time_sec);
// pick up model coordidnates that Nasal code may have set relative to the
// aircraft's
globals->get_model_mgr()->update(delta_time_sec);
// update the view angle as late as possible, but before sound calculations
globals->get_viewmgr()->update(delta_time_sec);