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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -