Esempio n. 1
0
        /// <summary>
        /// 指定した割合に対応する座標を取得する
        /// </summary>
        /// <returns>The point.</returns>
        /// <param name="t">T.</param>
        public Vector3 GetPoint(float t)
        {
            int i = GetCurveStartIndex(ref t);

            return(transform.TransformPoint(
                       Bezier.GetPoint(_points[i], _points[i + 1], _points[i + 2], _points[i + 3], t)));
        }
Esempio n. 2
0
 public Vector3 GetPoint(float t)
 {
     return(transform.TransformPoint(Bezier.GetPoint(points[0], points[1], points[2], points[3], t)));
 }