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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -