Automatically switch to follow mode when G key is pressed

ver1_5_1
Chris Laurel 2002-03-28 01:03:23 +00:00
parent bdb5c65932
commit e162ed3008
1 changed files with 2 additions and 0 deletions

View File

@ -673,6 +673,8 @@ void CelestiaCore::charEntered(char c)
break;
case 'G':
if (sim->getFrame().coordSys == astro::Universal)
sim->follow();
sim->gotoSelection(5.0, Vec3f(0, 1, 0), astro::ObserverLocal);
break;