spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.18k stars 380 forks source link

MeshLineRaycast early exit never enters #122

Open opcode1 opened 3 years ago

opcode1 commented 3 years ago

I was trying to figure out raycasting with MeshLine and found that the early exit optimization never gets called when you don't intersect the sphere. if (raycaster.ray.intersectSphere(sphere, interRay) === false) { return } Should be: if (raycaster.ray.intersectSphere(sphere, interRay) === null) { return }

Not really a factor for most cases but for mouseover with a lot of geometry might make a difference.