posted 14 years ago
Hello there,
I've been struggling with this task for a while now. I have a curve line as Path2D shape and have to move a ball by that line.
Unfortunately I wasn't able to find the solution of how to do it properly.
I thought of one thing but think that a bit retardedsub-optimal - get the starting point of the curve than check nearby pixels
whether the path intersects it and if it does - move the ball to this one pixel.
Thanks!