insertNCurves method

void insertNCurves(
  1. int n
)

Implementation

void insertNCurves(int n) {
  Vector3? newPathPoint;

  if (hasNewPathStarted()) {
    newPathPoint = getLastPoint();
  }

  var newPoints = insertNCurvesToPointList(n, getPoints());

  setPoints(newPoints);

  if (newPathPoint != null) {
    appendPoints([newPathPoint]);
  }
}