         if (timestamp >= timeline.length - 1) timestamp = 0;
                intersects = calculatePositon(timeline[timestamp], timeline[timestamp + 1], 0.0001);
                intermax = intersects.length;
                intersect++;
                timestamp++;
            } else {
                if (intersect >= intermax - 1) {
                    intersect = 0;
                    intermax = 0;
                } else {
                    intersects[intersect].push(5);
                    var positi