mrdoob/three.js — Issue #875: drag/interact with 3d object
Author: drsagitn
Created: 2011-12-08 15:00:43+00:00
State: open

I'm developing an application with three.js to create a 3d space like example http://mrdoob.github.com/three.js/examples/canvas_camera_orthographic.html . The next thing I would like to do is to interact with created objects, for example dragging cubes to new position. I use Ray to know when user click hit the objects. But to calculate the new position (x,y,z) of the object while users move the mouse is a little bit complicated. I could make it move but still not perfect yet. It will shift a little bit when users first click the object. Do you have any way to calculate the object's position with the known theta and phi of the camera?

Any help appreciated!
Thanks.