# Drag and drop the object on orthographic camera

**URL:** <https://discourse.threejs.org/t/drag-and-drop-the-object-on-orthographic-camera/12833>\
**Category:** Questions\
**Tags:** orthographic-camera\
**Created:** [February 18, 2020, 11:42am UTC](https://discourse.threejs.org/t/drag-and-drop-the-object-on-orthographic-camera/12833 "2020-02-18T11:42:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ugur\_Ozcan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/ugur_ozcan/32/9078_2.png) [@Ugur\_Ozcan](https://discourse.threejs.org/u/Ugur_Ozcan)\
**Post date:** [February 18, 2020, 11:42am UTC](https://discourse.threejs.org/t/drag-and-drop-the-object-on-orthographic-camera/12833/1 "2020-02-18T11:42:24Z")

</div>

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/](https://jsfiddle.net/h8j4auyk/8/)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 18, 2020, 12:25pm UTC](https://discourse.threejs.org/t/drag-and-drop-the-object-on-orthographic-camera/12833/2 "2020-02-18T12:25:31Z")

</div>

This fiddle should now correctly print intersections to the console: [https://jsfiddle.net/2yqw4n7L/](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`.

[https://threejs.org/docs/index.html#api/en/math/Vector3.project](https://threejs.org/docs/index.html#api/en/math/Vector3.project)  
[https://threejs.org/docs/index.html#api/en/math/Vector3.unproject](https://threejs.org/docs/index.html#api/en/math/Vector3.unproject)

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.
