import * as THREE from 'three'

// Exact coordinates extracted from the white road lane markers and building platform heights
export const truckPoints = [
  new THREE.Vector3(15.5, 0.45, -26.5),  // Start on road lane in front of First Mile warehouse
  new THREE.Vector3(13.399, 0.324, -24.742), // Road lane start in front of warehouse
  new THREE.Vector3(11.211, 0.178, -22.973), // Road lane marker
  new THREE.Vector3(8.823, 0.111, -20.949),  // Road lane marker
  new THREE.Vector3(6.447, 0.059, -19.06),   // Road lane marker
  new THREE.Vector3(3.786, 0.072, -17.002),  // Joining main road
  new THREE.Vector3(0.732, 0.124, -14.955),  // Road lane marker
  new THREE.Vector3(-2.156, 0.124, -12.903), // Road lane marker
  new THREE.Vector3(-4.417, 0.124, -10.929), // Road lane marker
  new THREE.Vector3(-5.896, 0.124, -8.052),  // Road lane marker
  new THREE.Vector3(-5.985, 0.124, -5.497),  // Stopped on road in front of Mid Mile hub
  new THREE.Vector3(-4.362, 0.124, -3.25),   // Road lane marker
  new THREE.Vector3(-1.448, 0.124, -1.234),  // Road lane marker
  new THREE.Vector3(2.539, 0.124, 0.986),    // Road lane marker
  new THREE.Vector3(6.686, 0.124, 3.379),    // Road lane marker
  new THREE.Vector3(8.213, 0.124, 6.14),     // Road lane marker
  new THREE.Vector3(7.976, 0.124, 9.176),    // Road lane marker
  new THREE.Vector3(6.424, 0.124, 12.428),   // Road lane marker
  new THREE.Vector3(3.883, 0.124, 15.769),   // Road lane marker
  new THREE.Vector3(1.241, 0.124, 19.056)    // Stopped in front of Last Mile hub
]

export const truckPath = new THREE.CatmullRomCurve3(truckPoints)
