* Torsten Dreyer -- Wednesday 06 December 2006 13:13:
> > var foo = aircraft.light.new("/sim/model/foo/light",
> > [0.05, 0.05, 0.05, 0.05, 0.05, 1.0]);
There will probably be two optional constructors:
light.new(<property>, <pattern-array> [, <switch>]);
light.new(<property>, <stretch-factor>, <pattern-array> [, <switch>]);
The constructor would multipy all values in the array with this stretch
factor. This makes the following possible:
var strobe_pattern = [0.05, 0.05, 0.05, 0.05, 0.05, 1];
var strobe_top = aircraft.new.light("/strobe/top", 1.00, strobe_pattern);
var strobe_bot = aircraft.new.light("/strobe/bot", 1.01, strobe_pattern);
... to allow re-using the pattern and still having slightly varying
sequences. And the array won't have to be even numbered. That' way
you can have "odd" pattern. :-)
> Ich hatte vor etlichen Monaten mal einen Patch für einen bug in limits.nas
> gepostet. Hat offenbar niemanden interessiert:
Whoops, sorry. Missed that. I'll commit it later today.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel