public SplineMove(MovableEntity entity, Array<Vector2> path, int pointsPerSegment) {
this.pointsPerSegment = pointsPerSegment;
setDone(false);
this.entity = entity;
spline = new CatmullRomSpline();
// adds the points given to the spline as control points
// the mandatory length is 4 and the first and last are not used as
// control points
for (Vector2 point : path) {