I'm trying to create a falling text using an animation based on position and with the expression below (following a youtube tutorial).
I would like to know if there is a way to allow characters to go only over my ending "land line", like setting a max value of the "y" position.
Thank you very much
I'm not understanding your question. The final position is where you set it, which would be your "land line" and the position animator y offset amount is how far up it starts. What are you trying to do differently from that? Are you trying to limit how far up the letters can go?
Thanks to the expression (freq =3; amplitude = 50; decay = 12.0) the letters jump a little bit above and below the "land line" before stopping in their final position.
I would like that the letters jump only above the "land line" before stopping, maybe like setting a maximum amount that the y value should have.
Sorry for the not clear question.
Ok, I see now. You're talking about bouncing instead of overshooting. I think if you change the line that calculates the value of "s" to this, it should do it. (If this goes in the wrong direction, then put a minus in front of amplitude.)
s = amplitude*Math.abs(Math.cos(freq*t*2*Math.PI))/Math.exp(decay*t);
Math.abs gives the absolute value, i.e. it removes the minus from negative values.