Exemplo n.º 1
0
        static Vector3 GetInfluencePos(float t, Vector3 pos, BezierSpline spline, float dir)
        {
            var normal = spline.GetNormal(t) * dir;

            return(pos + normal.normalized * spline.influenceWidth.Evaluate(t) * spline.baseWidth);
        }