x.on(Laya.Event.MOUSE_DOWN,this,this.onDownHander);
x.on(Laya.Event.MOUSE_UP,this,this.onUpHander);
private onDownHander(e:Laya.Event):void{ if(x)x.on(Laya.Event.MOUSE_MOVE,this,this.onMoseUnit);}
private onUpHander(e:Laya.Event):void{if(x)x.off(Laya.Event.MOUSE_MOVE,this,this.onMoseUnit);}
private onMoseUnit(e:Laya.Event):void { if(!e)return; this.onShowRotation((this.curMouseX - e.stageX)%360);this.curMouseX = e.stageX;}
public onShowRotation(_y:number = 0):void{x.transform.rotate(new Laya.Vector3(0,_y,0),false,false)}
就可以实现鼠标左右移动3d模型进行旋转的了,至于(this.curMouseX - e.stageX)%360)为什么这样计算,能懂就懂吧,x,就是监听的父类对象容器