大约有 481 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(255) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(19)
...e&name=Secne3DPlayer2D)) ```typescript //变换位置 this._position.x = Math.sin(this.scaleDelta += 0.01) * 2; this._position.z = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._positio...
来源: Laya2.0_文档 发布时间: 20210715
...t.CLICK, this, this.onSpriteClick); } onSpriteClick(e) { let randomAngle = Math.random() * 180; //发送自定义事件 this.sp.event(ROTATE, [randomAngle]); } // 触发自定义的rotate事件 onRotate(newAngle) { const Tween = Laya.Tween, Ease = Laya.Ease; Tween.to(this.sp, { "rotation": newAngle ...
来源: Laya2.0_示例 发布时间: 20251130
...mes No Frames QuaternionProperties | Methods | Constants Packagelaya.d3.mathClasspublic class QuaternionInheritanceQuaternion ObjectImplements laya.d3.core.IClone Quaternion 类用于创建四元数。 Public Properties PropertyDefined By w : NumberW轴坐标Quaternion x : NumberX轴坐标...
来源: Laya2.0_api 发布时间: 20190513
...: class TextRender getFontSizeInfo 函数,最后部分 var xoff:int = Math.max( orix - pixelBBX[0], 0); var yoff:int = Math.max( oriy - pixelBBX[1], 0); var bbxw:int = pixelBBX[2] - pixelBBX[0]; var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,如果不够可以再加...
来源: Laya_社区 发布时间: 20200108
...类型不会翻译类型,如果是int(1.11)也会报错,需要用Math或parseInt取下整, int.MAX_VALUE也是同理,建议你用Number.MAX_VALUE替代,如果需要取整,就用Math来取整即可! 2017-06-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20170623
... class TextRender getFontSizeInfo 函数,最后部分 var xoff:int = Math.max( orix - pixelBBX[0], 0); var yoff:int = Math.max( oriy - pixelBBX[1], 0); var bbxw:int = pixelBBX[2] - pixelBBX[0]; var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,如果不够可以再加...
来源: Laya_社区 发布时间: 20190802
...这是一个坑,哥教你爬坑的方法: this.tiledMap.moveViewPort(Math.abs(this.tiledMap.x) + offsetX, Math.abs(this.tiledMap.y) + offsetY); 这样就不跳了,是不是很神奇 2017-10-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20170824
...let width = 660 let height = 420 this.sp.size(width, height) this.sp.pivot(Math.round(width / 2), Math.round(height / 2)) this.sp.graphics.drawCircle(0, 0, 5, "#000000") this.sp.graphics.drawRect(-this.sp.pivotX, -this.sp.pivotY, width, height, undefined, "#00ff00", 1) this.sp.pos(500, 500) Laya.sta...
来源: Laya_社区 发布时间: 20171230
...的main.max.js出现大小不同 确定项目只引用了 import laya.d3.math.Vector3 和 import laya.d3.math.Vector2 用IDE编译正常 用flashBuilder编译 会编译到d3 没有引用到相关的类..例如laya.d3.animation.AnimationClip laya.d3.animation.AnimationClipParser02 请问这个如何...
来源: Laya_社区 发布时间: 20180920
...hics.IndexBuffer3D; import laya.d3.graphics.VertexBuffer3D; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import lay...
来源: Laya_示例 发布时间: 20251130