* timo van Overbrüggen -- Monday 29 January 2007:
> I know, there is a "listener-command" but it do not work with
> properties in ".../jsbim/aero/.." so I can not link the
> listener-command to the aerodynamical forces.
listeners are triggered whenever something writes to the listened-to
property by means of SGPropertyNode methods (foo->setBoolValue() etc.)
But some properties are for performance reasons "tied". That is, the
tying C++ code can write to and read from the property value directly,
without using those methods. In that case listeners aren't triggered.
This is the case with jsbsim/aero/*. It wouldn't make much sense to
listen to those, anyway, as they probably change several times per
frame. I suggest to use a simple loop for your purpose, which should
in this case even be faster.
> My second problem is, that I only want to show the force-or the
> momentarrows. Is there somebody who can explain me how to do that?
I had once planned to do that myself. Just make an extra 3D model
with the arrows and load that to your aircraft model in your main
*.xml animation file. You can add a to turn the whole
submodel on and off.
moment_arrows.xml
/path/to/switch
In the moment_arrows.xml file you define animations to rotate the
arrows. Their length can be controlled with scale animations along
one axis. I almost want to write the code myself now ... :-)
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