Hi i am trying to simply drag an away3d mesh with the mouse but with no luck. as i see it i need to convert the mouseX and MouseY to the 3d world coordinates however, this is what i tried and it doesnt work. also i need it to be draged in enter frame or TIMER. HELP PLEASE :)
PlayerHandle = new Mesh(new CubeGeometry(200, 100, 5));
_view.scene.addChild(PlayerHandle);
PlayerHandle.mouseEnabled = true;
PlayerHandle.addEventListener(MouseEvent3D.MOUSE_MOVE, HandlePlayerHandler);
public function HandlePlayerHandler(me3d:MouseEvent3D):void
{
PlayerHandle.x = me3d.scenePosition.x;
}
public function UpdateScene(e:Event):void
{
_view.render();
}