Three.js Raycaster not intersecting custom mesh

后端 未结 1 1491
一整个雨季
一整个雨季 2021-01-06 10:56

I\'ve built a custom mesh (an octagonal prism) by creating a geometry with vertices, and then building the faces. I\'m now trying to add mouseover interaction, however the R

相关标签:
1条回答
  • 2021-01-06 11:30

    Raycaster.intersectObjects() requires face normals.

    For custom geometries, you can compute them like so:

    geometry.computeFaceNormals();
    

    three.js r.58

    0 讨论(0)
提交回复
热议问题