I missing the ease option with jit.anim.node for an endless sensor float value 0.-360. from a compass 9DOF. I like to damp/ smoot/ ease the value.
When I use a slide, the value jumps when it cross from 360. to 0. or the other way round. Unfortunately the quaternition will not work with jit.anim.drive, which have the nice ease option. I need the absolut yaw position in the 3D space!
May there is a math to get the circular to an big endless value? Or a othe way to smoot the value? ease alone will not work.
Thanks for help :)
thanks for your fast repaly. Its working, but not like espectet. Maybe I didn't make it clear enough.
I looking for the effekt (damping) like using the slide, a damping when the float value change somewhere inside the full range of 0.-360..
Now with list.ease there is only a damping effect at the crosspoint from 360. to 0. or opposide, which works. (But also it change direction when using in_out_sine). But this is not what I'm searching for. Thanks for help 8]
I think roman's got the right idea. just set your counter to some very high number (or simply use accum, not sure what your actual patch is doing with the sensor data), the euler2quat will to the wrapping for you: