on = intersects[intersect];
                    var rotate = calculateDirection(intersects[intersect], intersects[intersect + 1]);
                    carmodel.scene.rotation.y = -rotate * Math.PI / 180;
                    threebox.moveToCoordinate(carmodel.scene, position);
                    map.setCenter({
                        lng: position[0],
                        lat: position[1]
                    });
                    intersect++;
                }
            }

            requestAnimati