Hi !
i know how to draw a spline, but in my game i need equidistant points along the path ! Is there a formulae to do this ? i'm crap with math !
Thanks for your help
from my ingame code : spline
Note that you can see the problem if you download my game, press f2 during the introscreen (cheat mode) and with the arrows keys choose level 10. (
http://www.bayre.com/zigwigwis/
to download click on 'telecharger')
i know how to draw a spline, but in my game i need equidistant points along the path ! Is there a formulae to do this ? i'm crap with math !
Thanks for your help
from my ingame code : spline
For Local a:Float=0 To 1 - .01 Step .01 t.x[Index] = x1*(1-a)^3 + 3*vx1*(1-a)^2*a + 3*vx2*(1-a)*a^2 + x2*a^3 t.y[Index] = y1*(1-a)^3 + 3*vy1*(1-a)^2*a + 3*vy2*(1-a)*a^2 + y2*a^3 Index = Index + 1 Next
Note that you can see the problem if you download my game, press f2 during the introscreen (cheat mode) and with the arrows keys choose level 10. (
http://www.bayre.com/zigwigwis/
to download click on 'telecharger')