added 3D functionality that allows origin translation, press Alt button
instead of Ctrl/Meta to activate it.