* Stuart Buchanan -- Tuesday 20 March 2007:
> 1) A "distance-to" function, that would evaluate to true when the user was
> within a given distance to a point (expressed in lat/long). This would be
> more useful than the current work-around that forces the tutorial writer
> to define a box with given long/lat sides.

Implemented. One can define one or more targets:

  <targets>
      <target>
          <longitude-deg>-122.37931</longitude-deg>
          <latitude-deg>37.626</latitude-deg>
      </target>

      <target>
          <longitude-deg>-123.456</longitude-deg>
          <latitude-deg>34.567</latitude-deg>
      </target>
  </targets>


... and the tutorial logic will offer distance and direction of the
aircraft to each of them as

  /sim/tutorial/targets/target[0]/direction-deg
  /sim/tutorial/targets/target[0]/distance-m

  /sim/tutorial/targets/target[1]/direction-deg
  /sim/tutorial/targets/target[1]/distance-m

A direction of 0 means that the target is straight ahead, 90 means
it's on the right, -90 on the left, -180 or -179.9999 in the back.
This can then be used in <condition>s.


Another improvement is, that one can now define more than one
<message> or <audio>, in which case one is chosen at random. See
the cvs log message for an example.  :-)

m.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to