Simply put I'm making a basketball game. I'm using these equations to predict the ball position and it works fine:
x = vx * t
y = vy * t + 0.5 * gravity * t * t
But I can't find a way to draw equal length line stripes on the parabola. At this moment I'm using:
t = t + dt
dt is the time elapsed in last frame. It works but the line segments would be longer if velocity is larger. Anybody know a way to draw equal length line stripes like the flying trails in Angry Bird? Thanks very much.
I suppose I should calculate the integral on the curve but I can't get it through...