示例#1
0
 public static void DrawPath(BezierCurveCubeV3D curve, float resolution = 0.1f)
 {
     for (float i = 0; i < 1f; i += resolution)
     {
         Gizmos.DrawLine(Lerps.BezierLerp.Lerp(curve, i), Lerps.BezierLerp.Lerp(curve, i + resolution));
     }
 }
示例#2
0
 public static void DrawPointsPath(BezierCurveCubeV3D curve)
 {
     Gizmos.DrawLine(curve.StartPos, curve.MidPosOne);
     Gizmos.DrawLine(curve.MidPosOne, curve.MidPosTwo);
     Gizmos.DrawLine(curve.MidPosTwo, curve.EndPos);
 }