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, |
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); }
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)); } }