Benno Rieger said:

> I'm searching for this point in "Flightgear source code" where  my 
> current  position in the scenery will be calculatet new , after hit 'v'.
> 
> Thanks
> Ben
> 

Look at the FGLocation class:  /simgear/scene/model/location.?xx  This is
accessed by the viewer/fdm/ai/scenery/model subsystems, etc.   Basically, to
answer your question, the viewer and scenery just switch from one "FGLocation"
instance* to another when you hit the "v" (see also viewmgr.cxx).  It doesn't
recalculate per se.  Those other positions are still there, they just aren't
rendered.

Best,

Jim

* actually, to be a little bit more accurate, you are switching "FGView"
instances and each of those has references to the "FGLocation" of the camera.
Things that move stuff write position data to the FGLocation (fdm/ai) and
rendering components read position data from FGLocation (scenery/model/viewer).


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to