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
Post a Comment