Three js raycasting OBJ

后端 未结 1 2079
伪装坚强ぢ
伪装坚强ぢ 2021-02-08 13:22

Hello! I ve got an three js and tried to use it with my project. The thing is - i needed to select my custom mesh loaded from OBJ file.

I created simple raycaster,

相关标签:
1条回答
  • 2021-02-08 14:09

    You need to pass the recursive flag

    var intersects = raycaster.intersectObjects( objects, true );
    

    https://threejs.org/docs/#api/core/Raycaster.intersectObjects

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