David Culp wrote:
> I'm trying to animate a model based on elapsed time (starting
> from when the model first appears).  Anyone know how to do
> this?  I need the time to start at zero when the model is first
> created, then tick at once per second.
>
> I see the Spitfire smoke animation
> uses "/sim/time/elapsed-sec", but I don't see how this can
> work, since the number could start out at any value.  Is there
> a way to use that property, but apply an offset equal to -1
> times the starting value?

I suspect you *could* do this with the animation code.  At
start (from whatever binding creates the model) you copy the time
property to "/where/ever/model-start-sec".  Then you use a
subtraction node in the animation itself.

But honestly, things would be much simpler using a little Nasal.

Andy

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

Reply via email to