positionPath() public method

position path tween
public positionPath ( GoSpline, path, bool isRelative = false, GoLookAtType lookAtType = GoLookAtType.None, Transform lookTarget = null ) : GoTweenConfig,
path GoSpline,
isRelative bool
lookAtType GoLookAtType
lookTarget Transform
return GoTweenConfig,
Esempio n. 1
0
    public void SnapTo(ObjectSnapZone zone)
    {
        SnapTargetPos = zone.CurrentSnapSlot().pos + zone.transform.position;
        var position = transform.position;
        var points   = new[]
        {
            position,
            ((position + SnapTargetPos) / 2) + (Vector3.up * (Vector3.Distance(position, SnapTargetPos) / 2)),
            SnapTargetPos
        };
        var path   = new GoSpline(points);
        var config = new GoTweenConfig();

        config.positionPath(path, false);
        config.easeType = myEaseType;
        Go.to(transform, throwTime, config);
    }
Esempio n. 2
0
 static public int positionPath(IntPtr l)
 {
     try {
         GoTweenConfig self = (GoTweenConfig)checkSelf(l);
         GoSpline      a1;
         checkType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         GoLookAtType a3;
         checkEnum(l, 4, out a3);
         UnityEngine.Transform a4;
         checkType(l, 5, out a4);
         var ret = self.positionPath(a1, a2, a3, a4);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }