Order = 1;
      scene.add(curveObject);
    }
  }

  const geometry = new THREE.BoxGeometry(100, 100, 300);
  const material = new THREE.MeshBasicMaterial({color: 'cyan'});
  const cars = [];
  for (let i = 0; i < 10; ++i) {
    const mesh = new THREE.Mesh(geometry, material);
    scene.add(mesh);
    cars.push(mesh);
  }

  // create 2 Vector3s we can use for path calculations
  const carPosition = new THREE.Vector3();
  const carTarget = new THREE.Vector3();

  function render(time) {
    time *= 0.001; 