On Tuesday 15 November 2005 07:46 am, Erik Hofman wrote: > Erik Hofman wrote: > > I don't get it, "ai->Run(dt)" doesn't seem to be called anywhere in the > > code, does adding it to FGSubmodelMgr::update solve the problem? > > Never mind, it's called in FGAIBallistic::update > I think it should work properly as it is.
It doesn't AFAICT. It appears every bit of contrail is using one model, just drawn in a different place, so they all use the same animation instance. This would explain why they all appear to use the elapsed time of the first model? You can see this for yourself by adding this animation to contrail.xml: <animation> <type>scale</type> <object-name>cylinder</object-name> <property>sim/time/elapsed-sec</property> <x-factor>1.0</x-factor> <y-factor>0.4</y-factor> <z-factor>0.4</z-factor> <x-min>3.94</x-min> <y-min>1.00</y-min> <z-min>1.00</z-min> <x-max>3.94</x-max> <y-max>5.00</y-max> <z-max>5.00</z-max> </animation> The idea is to have each contrail bit grow to 5 times its normal diameter. When you run the simulation all the contrails come out small, and they all grow large, even the new ones. After a few seconds only large ones are created. Dave Dave _______________________________________________ Flightgear-users mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-users 2f585eeea02e2c79d7b1d8c4963bae2d
