/** * While tweening along a curve, set this property to true, to be perpendicalur to the path it is moving upon * @method setOrientToPath * @param {bool} doesOrient:bool whether the gameobject will orient to the path it is animating along * @return {LTDescr} LTDescr an object that distinguishes the tween * @example * LeanTween.move( ltLogo, path, 1.0f ).setEase(LeanTweenType.easeOutQuad).setOrientToPath(true).setAxis(Vector3.forward);<br> */ public TweenDescription SetOrientToPath(bool doesOrient) { if (Type == TweenAction.MOVE_CURVED || Type == TweenAction.MOVE_CURVED_LOCAL) { if (Path == null) { Path = new TweenBezierPath(); } Path.OrientToPath = doesOrient; } else { Spline.OrientToPath = doesOrient; } return(this); }
public TweenDescription SetPath(TweenBezierPath path) { Path = path; return(this); }