Hi gang, I’m trying to move a model over a period of time using an interval, but no matter what parameter I specify for time, the move is instantaneous. Can someone offer some advice?
I don’t see anything wrong. Is it possible that you created this interval in the middle of a very long frame (for instance, at startup, or after loading a lot of models), so that by the time you reach the next frame, the required time has already elapsed?
(Note that the clock is by default as of the beginning of the current frame, so any time that has already elapsed this frame is deducted from your total run time.)
There’s nothing wrong with calling it inside an event handler; that should work perfectly fine. There must be something else going wrong. For instance, maybe there’s some other task that’s resetting the position of the node before the interval gets a chance to run, or something equally silly.