java - Libgdx actor following a Parabolic movement -


i want move actor position x1, y1 position x2, y2 parabolic movement.

should use bezier curve ?

is there example take at? in tests project saw linear movement (in pathtest example).

thanks in advance!

bezier curve cubic, not parabolic.

you use following action in stead.

protected void update (float percent) {     actor.setposition(startx + (endx - startx) * percent,                       starty + (endy - starty) * percent * percent,                       alignment); } 

hope helps.
luck.


Comments

Popular posts from this blog

c# - MSAA finds controls UI Automation doesn't -

python - mat is not a numerical tuple : openCV error -

wordpress - .htaccess: RewriteRule: bad flag delimiters -