Three js custom raycaster


```typeexport function z(x, y) {  const origin = new THREE.Vector3(x - ref.cloud.offset[0], y - ref.cloud.offset[1], 0)  const direction = new THREE.Vector3(0, 0, 1).normalize()  const raycaster = new THREE.Raycaster(origin, direction)  raycaster.params.Points.threshold = 0.1  const intersects = raycaster.intersectObjects(ref.cloud.pointclouds, true)  intersects.sort((a, b) => a.point.z - b.point.z)  return intersects[0].point.z + ref.cloud.offset[2]}```

> [Three js raycaster WITHOUT camera](https://stackoverflow.com/questions/57178395/three-js-raycaster-without-camera)




