Assets/SplineTool/Scripts/CorgiSpline/Spline.cs
/// <summary>
/// Transforms a SplinePoint from local space to world space.
/// </summary>
/// <param name="point"></param>
/// <returns></returns>
Transforms a SplinePoint from local space to world space.
Transforms a SplinePoint from local space to world space .
public SplinePoint TransformSplinePoint(SplinePoint point)
        {
            var matrix = transform.localToWorldMatrix;
            point.position = matrix.MultiplyPoint(point.position);
            point.rotation = matrix.rotation * point.rotation;
            point.scale = matrix.MultiplyVector(point.scale);
            return point;
        }
public SplinePoint TransformSplinePoint ( SplinePoint point ) { var matrix = transform . localToWorldMatrix ; point . position = matrix . MultiplyPoint ( point . position ) ; point . rotation = matrix . rotation * point . rotation ; point . scale = matrix . MultiplyVector ( point . scale ) ; return point ; }
Transforms a SplinePoint from local space to world space.
Transforms a SplinePoint from local space to world space .
None
point
SplinePoint
None