Drag and drop the object on orthographic camera

Hello three.js family, I have a question with drag and drop issue on Orthographic Camera. I cannot move cube on the scene. What’s my mistake? Can you help me? My codes here: https://jsfiddle.net/h8j4auyk/8/

This fiddle should now correctly print intersections to the console: https://jsfiddle.net/2yqw4n7L/

The previous code produced a runtime error which was visible in the browser console. Be aware that Projector is no part of the core library anymore. And you don’t use it to project/unproject vectors. Instead, use the respective methods of Vector3.


Ensure to work with tutorials or books which are as up-to-date as possible. Some resources refer to really old three.js revisions which are not recommended anymore.

1 Like