freq = 1;
amp = 110;
loopTime = 3;
t = time % loopTime;
wiggle1 = wiggle(freq, amp, 1, 0.5, t);
wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
linear(t, 0, loopTime, wiggle1, wiggle2)
Creates a seamless, looping wiggle effect that smoothly transitions between the start and end points, ensuring the motion resets every specified duration.
Contributed by:
Use this on the Position property of an object (like a floating balloon or drifting cloud) to make it gently move up and down in a looping, natural manner. This expression ensures the wiggle effect loops seamlessly every 3 seconds, preventing abrupt jumps.