Hi there,
I’ve encountered an issue with MouseEvent3D.localX (and Y, Z ). It always return -1.
_playField = new Plane(_playFieldMap,256,64,5,5)
_playField.mouseEnabled = true
_playField.addEventListener(MouseEvent3D.MOUSE_DOWN,downHanlder)
protected function downHanlder(e:MouseEvent3D):void{
trace (e.localX,e.localY,e.localZ) // OUTPUT ALWAYS -1,-1,-1
}
I don’t understand why , i’ve seen many tutorial before i ask a stupid question here, but no one mention to this issue.
Thank for help.