|
From: Curtis L. O. <cu...@fl...> - 2001-06-18 14:55:11
|
Michael Maier writes: > I working on an airship simulation and I am trying to connect the > Flight Gear scenery with my simulation. I have some problems with > the coordinates. Can you please help me to find the transfer > function from the velocity I get from my simulation to the > coordinates of the world systems of Flight Gear. Thanks a lot for > your help. If you can convert your coordinates to longitude, latitude, and altitude, then you should be able to render your position pretty easily in FlightGear. If you are wondering how to calculate a new lon/lat in a wgs_84 world given a heading and velocity, have a look at simgear/math/sg_geodesy.hxx. If you want to just use a spherical world, have a look at simgear/math/polar3d.hxx. However, I'm the last one you want to ask advice on building your flight model. I imagine their are better/more efficient ways to do this so that you just do this expensive conversion of coordinate systems once in the end??? Regards, Curt. -- Curtis Olson Human Factors Research Lab FlightGear Project Twin Cities cu...@hf... cu...@fl... Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org |