LTDescr.setMoveSpline C# (CSharp) Method

setMoveSpline() public method

public setMoveSpline ( ) : LTDescr
return LTDescr
    public LTDescr setMoveSpline()
    {
        this.type = TweenAction.MOVE_SPLINE;
        this.initInternal = this.initFromInternal;
        this.easeInternal = ()=>{
            newVect = easeMethod();
            val = newVect.x;
            if(this._optional.spline.orientToPath){
                if(this._optional.spline.orientToPath2d){
                    this._optional.spline.place2d( trans, val );
                }else{
                    this._optional.spline.place( trans, val );
                }
            }else{
                trans.position = this._optional.spline.point( val );
            }
        };
        return this;
    }
LTDescr