//---------------------------------------------------------- // reset() -- sets up our initial flying values //---------------------------------------------------------- void LaeroModel::reset() { BaseClass::reset(); Simulation::Player* pPlr = static_cast<Simulation::Player*>( findContainerByType(typeid(Simulation::Player)) ); if (pPlr != nullptr) { LCreal initVel = pPlr->getInitVelocity(); u = initVel * Basic::Distance::NM2M / Basic::Time::H2S; } }