Andy Ross schrieb:
Steve Knoblock wrote:
1. Will Nasal scripting give me all options to program the
push-back function (incl. playing sound files and checking
distances to other planes or to next taxi way)?
I am not sure of this, but NASAL can listen for properties and then
change properties,
Yes, Nasal interacts with the rest of FlightGear through the property
and FGCommand subsystems, and in a few special cases by extension
functions (settimer() and random() being the only ones I can think of
off the top of my head).
So anything you can do through those mechanisms is scriptable.
Anything the you *can't* do through those mechanisms is either
something that we don't want to script (3D rendering, FDM internals),
or just haven't gotten around to. Wiring up property/command
interfaces for C++ subsystems is generally pretty easy.
Andy
Ok, it looks like I'm able to set the body velocity (uBody) to a certain
value by a nasal-script and the plane makes some kind of hoop forward.
But I got the impression, that the fdm automatically 'resets' my
velocity to the correct value generated by the thrust of the engine.
I did try to set the value in a for-loop, but this only sets the
velocity x-thousand times to a value without moving the plane.
So is there any way to update the graphics in a loop or to set a
rearward velocity for a certain distance/time?
BTW: How do I play sounds by Nasal scripts?
TIA, Carsten
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d