I’m trying to move a component along a path, but the results are a big “shakey”! I’m using getPointAlongPath() which returns a float, but I can only set bounds using ints. Therefore the loss of precision is causing the component to move along in a not so smooth way. Anyone got any better ideas of how I could do this?
Here’s my code…
Point<float> pt = ballPath.getPointAlongPath(i, affine);
comp->setCentrePosition (pt.getX(), pt.getY());
i += incr;