Moving Component along a Path?


#1

Hello,

I’m trying to animate few buttons like in the Juce Demo, but instead of random movement I’d like to make it follow a certain Path, let’s say to follow a hyperbola, spiral or any Bezier curve.

I’m not sure Path class is the way to go, but can’t see anything similar to it in the documentation…
I’d appreciate any suggestions.
J.


#2

Path::getPointAlongPath() might do the job, or you could use a PathFlatteningIterator to be a bit more efficient.