On sam 8 décembre 2007, Melchior FRANZ wrote:
> * Melchior FRANZ -- Saturday 08 December 2007:
> > it was time to add some generic properties for "internal communication".
>
> It's probably also time to remind people again of the possibility to
> add Nasal code to model (animation) XML files. This is then only
> run when the model is used as as a static scenery model or an MP
> model, but not for the instance that you are actively flying on your
> machine. Such code can evaluate generic properties and modify them,
> and/or move them where they belong. In the MP case, cmdarg() can be
> used to access the model's node under /ai/models/. Example:
>
>   <nasal>
>       <load>print("I was just loaded under ", cmdarg().getPath())</load>
>       <unload>print("Good Bye says ", cmdarg().getPath())</unload>
>   </nasal>
>
> See $FG_ROOT/Aircraft/Models/bo105.xml for a real world example.
>
> m.
>
Which is right,
 but don't forget that we can within JSBSim avoid most of the Nasal code 
everything done in the FDM.
For instance, i do use it to get the right (factor) animation with propellers, 
the brake chute animated under conditions,  and so on  everything done 
without Nasal.

Nasal animation Probably valuable  for YASim but with JSBsim their is an other 
way easier.

Regards


-- 
Gérard
http://pagesperso-orange.fr/GRTux/
<< Less i work, better i go >>


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to