Page 1 of 1

Touch Translation inertia approaches limit asymptotically?

Posted: 19 Nov 2012, 05:32
by crishoj
We would like to get continuous touch control over an animation. To this end, I have connected the X output of a Touch Translation node to an animation control node, and put limits on the X value to match the beginning and end of the animation state.

It works well, except for the fact that an inertia motion never reaches the maximum value completely, only asymptotically.
Specifically, I have MaxX of 10, but when I set the translation "in motion" (with inertia), the output only reaches 0.994415045.
If touch and drag all the way to the end, I get the maximum value. Just not with inertia.

Is this a known or intended behavior?

Without some script support, I can't see how I can reach the next animation state with inertia.

Re: Touch Translation inertia approaches limit asymptoticall

Posted: 19 Nov 2012, 10:20
by Daniel Willer
The Touch nodes have a kind of simple physic implemented called Behavior so when your Limits are active and set to MaxX = 1 for example and ApplyBehavior is enabled the Element bounces back from the limit.
As the output values are generated per frame it can happen that the value never reaches 1.
You can either use a clipping node to map a smaller range or a float expression.

Cherio!

Re: Touch Translation inertia approaches limit asymptoticall

Posted: 19 Nov 2012, 13:16
by crishoj
Thank you for the update.

The "Limit Elasticity" is set to 0.000, so I don't expect any elasticity at all. Perhaps this is due to floating point precision? I would find it less surprising if 0.000 actually was interpreted as "no elasticity".

Re: Touch Translation inertia approaches limit asymptoticall

Posted: 21 Nov 2012, 07:18
by chriss0212
hi

try to deactivate the behavior!

greetz

christian