コード例 #1
0
 /// <summary>
 /// 椭圆运动 2D
 /// VecA与VecB垂直
 /// a和b相等,2D就是一个圆,3D就是一个球
 /// </summary>
 /// <param name="centerPos">中心点</param>
 /// <param name="a">向量A长度 x轴</param>
 /// <param name="b">向量B长度 y轴</param>
 /// <param name="t"></param>
 /// <returns>ActionInterval</returns>
 public static ActionInterval CCEllipse2D(this Transform obj, float duration, Vector2 centerPos, float a, float b, float startp = 0, float endp = 1, bool relativeWorld = false)
 {
     return(obj.CCEllipse(duration, centerPos, new Vector3(1, 0, 0), new Vector3(0, 1, 0), a, b, startp, endp, relativeWorld));
 }