Hello , i have a mesh , and i want to project a vertex using a direction vector (0,0,-1) on my case , and the find the intersecting face
I have tried the raycaster but it doest work , i tried to change the threshold and nothing
raycaster.set(vv, new Vector3(0, 0, -1));
raycaster.params.Mesh.threshold = 1e-18;
raycaster.params.Points.threshold = 1e-18;
raycaster.firstHitOnly = true;
const res = raycaster.intersectObject(mesh, true);
if (res.length) {
if (res[0].distance > 0) console.log(res[0].distance);
vectors.push(vv);
vectors.push(res[0].point);
}
The distance is always 0 , and the returned point is the same as the origin