Three.js THREE.Projector has been moved to

后端 未结 5 613
萌比男神i
萌比男神i 2020-12-09 17:47

I understand there is no THREE.projector in version 71 (see the deprecated list), but I don\'t understand how to replace it, particularly in this code that dete

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 18:32

    You can use the latest recommended version as stated above.

    To get your specific code working, replace:

    projector.unprojectVector( vector, camera );
    

    with

    vector.unproject(camera);
    

提交回复
热议问题