On November 14, 2005 11:05 pm, Dave Culp wrote:
> I want to animate an object, using the scale animation.  Say I have a bit
> of contrail which appears behind the user aircraft.  I want that contrail
> model to grow to about 2 or 3 times its starting size within 8 seconds.  I
> also want it to fade to transparent within 8 seconds, but that's another
> issue. To do this I need a property that counts to 8 seconds.
>
> The only property I know of that does anything like this is
> "sim/time/elapsed-sec", but its value will be unknown at the time the
> contrail bit is created, so I can't use this raw value for the animation.  
> Let's say that when a particular bit of contrail is created the elapsed
> time is 1528.35.  If I could apply an offset of -1528.35 to this number,
> then I would have the elapsed time since the model was created, and I could
> use it for my animation because I'm now starting from a known value (zero).
>
> Dave

hmm... I'm not sure if there is any efficient way (if any at all) to do that.

Have you considered using the <range></range> animation tags?  It should give 
you the effect you want when the camera is following the plane.

Ampere

_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to