-
Make wiggle expression stop without “jumping”?
I have a small animation which relies on keyframing and a wiggler expression to move about 20 small circles around a screen. As they pass through a certain area, the circles should stop dead in their tracks.
However, I haven’t worked out how to make the wiggler expression (which controls the anchor point) stop without it jumping back to it’s original anchor point of 250,250 (which creates an awful ‘jumping’ effect over the course of one or two frames).
Example code:
wiggleSpeed = transform.position.speed*100if (wiggleSpeed > 400) //just makes sure wiggle isnt too quick
{
wiggle(1.5,400);
}else if (wiggleSpeed < 0.1) //stops wiggle
{value;}
else
{wiggle(1.5 //slows wiggle as speed decreases
,wiggleSpeed);
}Now this code looks rather complicated, but the same issue persists even if I use a really basic form. I think the problem is how it reacts with the Anchor Point when it stops.