大约有 63 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0028 秒)
Laya 2.0 物理多点触摸手机上必卡死 Laya.MouseManager.enabled = false; Laya.MouseManager.multiTouchEnabled = false; 鼠标跟多点都禁用的情况下依然报错 三根及以上的手指同时点击box即可触发(快速点击触发概率更高) e.preventDefault替换成(e.canc...
来源: Laya_社区 发布时间: 20191015
...但下面这么用一直没有东西,求指点 this.mousePos=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20181220
... //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Lay...
来源: Laya_社区 发布时间: 20170915
... at TouchManager.__proto.onMouseUp (VM471 laya.core.js:1670) at MouseManager.__proto.onMouseUp (VM471 laya.core.js:2658) at MouseManager.__proto.check (VM471 laya.core.js:2685) at MouseManager.__proto.runEvent (VM471 laya.core.js:2733) at HTMLCanvasElement.<anonymous&...
来源: Laya_社区 发布时间: 20181120
...honeyzzzz • 2017-04-24 10:07 问题解决了, this.point.elements[0] = MouseManager.instance.mouseX;//用Laya.stage.mouseX有问题,在SCALE_SHOWALL下 this.point.elements[1] = MouseManager.instance.mouseY; cuixueying • 2017-04-24 10:21 厉害!
来源: Laya_社区 发布时间: 20170421
...or: this._stage._canvasTransform.invertTransformPoint is not a function at MouseManager.__proto.initEvent (subContext/code.js:2999:32) at MouseManager.__proto.runEvent (subContext/code.js:3139:14) at Stage.__proto.render (subContext/code.js:18499:26) at Stage.__proto._loop (subContext/code.js:18458:...
来源: Laya_社区 发布时间: 20180404
...ya.Vector2 = new Laya.Vector2(); screenPoint.x = Laya.MouseManager.instance.mouseX; screenPoint.y = Laya.MouseManager.instance.mouseY; // console.log(screenPoint); let touchRay:Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0,...
来源: Laya_社区 发布时间: 20220117
....<RaycastHit> = new Vector.<RaycastHit>(); point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.direction.z = 0; ray.origin.x = 0; ray.origin.y = 0; ray.origin.z = 0; handCamera.viewportPointToRa...
来源: Laya_社区 发布时间: 20171017
...射线,进行射线检测。效果如(图5) ```typescript point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产生射线 _camera.viewportPointToRay(point,_ray); //拿到射线碰撞的物体 _scene.physicsSimulation.rayCast(_ray,outs); //如果碰撞到物体 if...
来源: Laya2.0_文档 发布时间: 20210715
...进行射线检测。效果如(图5) ```typescript this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this._ray...
来源: Laya2.0_文档 发布时间: 20210715