class flixel.tweens.motion.CubicMotion extends Motion

Available on all platforms

Determines motion along a cubic curve.

Instance Fields

function setMotion(fromX:Float, fromY:Float, aX:Float, aY:Float, bX:Float, bY:Float, toX:Float, toY:Float, duration:Float):CubicMotion

Starts moving along the curve. * *

fromX

X start. *

fromY

Y start. *

aX

First control x. *

aY

First control y. *

bX

Second control x. *

bY

Second control y. *

toX

X finish. *

toY

Y finish. *

duration

Duration of the movement.