Jon S. Berndt wrote: >> I've been playing around with some scripts to leverage the autopilot to >> chase ai/multiplayer aircraft and also some script to control the lead >> "ai" aircraft in various ways. In the process I snapped a couple short >> movies with my digital camera which I thought turned out pretty cool, so >> I've posted them on the FG web site to share. These are all of a target >> "AI" aircraft being chased by a piloted aircraft (possibly under >> autopilot control.) >> > > 1) How did you set up the camera viewpoint, and 2) how do you "publish" the > location of the AI aircraft? >
1) This is just a standard/default viewpoint. Press "v/V" to cycle through the different views, for each view you can move the vantage point (or view direction) around with the mouse. 2) The location (and much more) of all the AI and most (many) [1] of the multiplayer aircraft can be found in /ai/models/aircraft[n] and /ai/models/multiplayer[n] I added a flag (cvs) to allow you to force radar computations on all the time so you can always have range and heading/pitch offset to each target. You can also get speed, orientation, position, etc. For "ai" aircraft without a flight plan, you and direct their target speed, altitude, roll, heading, etc. through the property system. The "ai" system has a very simplistic/minimalistic dynamics model for aircraft, but it's just enough to make them behave plausibly when viewed from a short distance away ... in other words, they all look like they are flying, even if the full physics model isn't being computed for them. [1] I think their may be a bug in the multiplayer system where nearby aircraft aren't always registered in the property system. Curt. -- Curtis Olson http://www.flightgear.org/~curt HumanFIRST Program http://www.humanfirst.umn.edu/ FlightGear Project http://www.flightgear.org Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel