大约有 2,360 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1753) Laya3.0_api(144) Laya2.0_文档(127) Laya2.0_api(103) laya_api(77) Laya3.0_文档(66) Laya_示例(48) Laya2.0_示例(42)
LayaAir引擎 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 Laya.Quaternion.createFromAxisAngle 在做向量旋转的时候,当使用的旋转坐标轴是标准坐标轴时,旋转的结果是正确的,如围绕Y轴旋转,(0,1,0),旋转30度,得到的结果是正确的 但...
来源: Laya_社区 发布时间: 20191230
...lineY=lastWords.y+lastWords.height; if(hasLine) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords.y,lastWords.x+lastWords.width-startWord.x,lastWords.height); hitRec.href=this.href; recList.push...
来源: Laya_社区 发布时间: 20190801
Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/EdgeCollider" EdgeCollider Class EdgeCollider 2D边框碰撞体 Hierarchy ColliderBase EdgeCollider Index Constructors cons...
来源: Laya3.0_api 发布时间: 20231115
... if(e.keyCode==37){//左 this.hero.pos(this.hero.x-100,this.hero.y); }else if(e.keyCode==39){//右 this.hero.pos(this.hero.x+100,this.hero.y); }else if(e.keyCode==38){//上 this.hero.pos...
来源: Laya_社区 发布时间: 20161015
Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/PolygonCollider" PolygonCollider Class PolygonCollider 2D多边形碰撞体,暂时不支持凹多边形,如果是凹多...
来源: Laya3.0_api 发布时间: 20231115
...Width = window.innerWidth; var divHeight = window.innerHeight; var devicePixelRatio = Laya.Browser.pixelRatio; var divH = divHeight * devicePixelRatio; var divW = divWidth * devicePixelRatio; var desH = Laya.stage.height; var desW = Laya.stage.width; //设备是否为竖屏 var isDivH = divH > di...
来源: Laya_社区 发布时间: 20171205
...标以及相同大小之后,再次根据getChildByName()获取出来时x,y坐标居然是0,0而且高度跟宽度也会变化很多,请问是什么原因?打印信息我已经加上 附件 : --> DataTest.zip 2018-04-27 添加评论 已悬赏3元 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180427
Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/display/cmd/DrawPieCmd" DrawPieCmd Class DrawPieCmd 绘制扇形 Hierarchy DrawPieCmd Index Properties fillColor lineColor lineWidt...
来源: Laya3.0_api 发布时间: 20231115
...蓝色图片的位置、方向,要鼠标拖动y点让蓝色图片围绕 x点旋转,如何求出x点,红色图片的x位置已经知道,是世界坐标,如何转为蓝色图片的轴心位置 附件 : --> 2017-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20171212
...封装,laya并没有这样的api /** * * @param {坐标点} a 示例:{x:1,y:1} * @param {坐标点} b 示例:{x:1,y:100} */ function calcDistance(a,b){ return Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2)); } 2018-08-27 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20180827