jit.anim.drive ease ends shaky
hi,
I noticed a counter-movement at the end of a jit.anim.drive "move" or "turn" instruction.
Namely, if I send a [turn 0 1 0] quickly followed by a [turn 0 0 0], I get the following messages spit out of jit.anim.drive :
anim_turn 0. 0.222 0. 3.33
anim_turn 0. 0.558 0. 5.04
anim_turn 0. 0.420732 0. 3.69
anim_turn 0. 0.292392 0. 3.45
anim_turn 0. 0.166284 0. 3.39
anim_turn 0. 0.03906 0. 3.42
anim_turn 0. -0.090396 0. 3.48
anim_turn 0. 0. 0. 3.24
I mean that last "-0.090396" on Y-axis ... Looks like a small value, but this shake is very noticeable (especially when applied on a jit.camera).
It seems to happen whatever easing function is used and that the amplitude of the reverse movement is inverse-proportional to the context FPS.
Is it a bug ?
Is it possible to get rid of this counter-movement ?
Max Patch
Copy patch and select New From Clipboard in Max.
Below is a demo patch.