The Easy Way Of Dragging in 3D
Andy Zupko shares the “hack” technique of dragging objects in 3D in multiple directions using the tools already built into Papervision. The hack is to use a Plane as a “drag plane”. Then, all you need to do is detect where the mouse hits that plane in 3D space, and move your object to that location. This method would be easy to extend to drag multiple objects (simply use a drag Target instead of sphere for everything). You’ll also notice in this demo the author included a few physics related things to play with, including the ability to throw the object, as well as bouyancy and gravity. Simply press “g” to activate these abilities. Demo and source are attached.