Hi,
I am trying to drag a mesh object with the mouse but has some problems
how can i drag the object with a timer event or enter frame event?
i need the object to follow the mouse on the X and the Y
This is what i tried with MouseEvent3D but with no luck
PLEASE HELP
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();
}