• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,360 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0072 秒)

351. 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 [ 86%]

LayaAir引擎 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 Laya.Quaternion.createFromAxisAngle 在做向量旋转的时候,当使用的旋转坐标轴是标准坐标轴时,旋转的结果是正确的,如围绕Y轴旋转,(0,1,0),旋转30度,得到的结果是正确的 但...

来源: Laya_社区 发布时间: 20191230

352. HTMLDivElement下划线换行时,下划线颜色错误 [ 86%]

...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

353. laya.physics.EdgeCollider_API3.0 [ 86%]

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

354. 监听按键事件怎么写呀,TS的 [ 86%]

...   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

355. laya.physics.PolygonCollider_API3.0 [ 86%]

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

356. 关于适配noborder模式(个人适配分享及建议) [ 86%]

...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

357. 创建多个Sprite对象后,再次取出来的时候坐标全为0,0高宽跟创建时的也不一样 [ 86%]

...标以及相同大小之后,再次根据getChildByName()获取出来时x,y坐标居然是0,0而且高度跟宽度也会变化很多,请问是什么原因?打印信息我已经加上 附件 : --> DataTest.zip 2018-04-27 添加评论 已悬赏3元 --> 分享 微博 QZONE 微信 没有找到相关...

来源: Laya_社区 发布时间: 20180427

358. laya.display.cmd.DrawPieCmd_API3.0 [ 86%]

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

359. 如何求两个图片的交叉点 [ 86%]

...蓝色图片的位置、方向,要鼠标拖动y点让蓝色图片围绕 x点旋转,如何求出x点,红色图片的x位置已经知道,是世界坐标,如何转为蓝色图片的轴心位置 附件 : --> 2017-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

来源: Laya_社区 发布时间: 20171212

360. layair 两点之间的距离api在哪里 [ 86%]

...封装,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