* gh.robin -- 9/5/2007 5:43 PM:
> i find nothing regarding impacts in the submodel property tree.

See $FG_ROOT/Docs/README.submodels and the seahawk for an example.
If impacts are enabled in the submodel XML config file (<impact>),
then every impact generates a dir entry in /ai/models/ with all
the impact data (lat/lon/elev/solid/etc. The submodel can directly
access the properties, as that dir is its base dir. So you can keep
a parachuter from falling through the ground etc.

And /ai/models/model-impact is set to the path of the last impact,
so you can attach a listener to it and read out the data from any
Nasal context. You can also set individual listener report nodes
for each submodel in the submodel XML config (<impact-reports>;
see the bo105 for an example, where a model is placed at impact
points).

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to