[email protected]

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.

Tina Zennand
Tina is a writer who has been working with MotoCMS since early 2010. In her articles she covers various aspects of web design and web development. She is also a marketing manager for MotoCMS websites. You can follow her on Twitter or Google +.
More articles by Tina Zennand

Related Posts