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

大约有 46 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0022 秒)

21. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 68%]

...t; 0 && a < -c)) { a = c; s = p / 4; } else s = p / PI2 * Math.asin(c / a); return (a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * PI2 / p) + c + b); }可以按照原来的函数仿写自己想要的 2018-01-04 0 2 分享 微博 QZONE 微信 he853066732 赞同来自:   2018-04-08 0 0 ...

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

22. 输入设备-贪吃蛇(重力感应) [ 65%]

...0; var tx = this.x + Math.cos(radian) * this.width; var ty = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } this.size(width, height); this.init(); } Laya.class(Segment, "Segment", Sprite); var seg; var segments = []; var foods = []; var initialSegmentsAmount = 5; var vx = 0, vy ...

来源: Laya_示例 发布时间: 20240930

23. 输入设备-贪吃蛇(重力感应) [ 65%]

...0; let tx = this.x + Math.cos(radian) * this.width; let ty = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } } new InputDevice_GluttonousSnake();module laya { import Sprite = Laya.Sprite; import AccelerationInfo = Laya.AccelerationInfo; import Accelerator = Laya.Accelerator; impo...

来源: Laya2.0_示例 发布时间: 20240930

24. SkyBoxMaterial材质详解(TypeScript-3D基础(TS)-天空材质详解) [ 63%]

...r.frameLoop(1, this, function() { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)

来源: Laya2.0_文档 发布时间: 20210715

25. SkyBoxMaterial材质详解(JavaScript-3D基础(JS)-天空材质详解) [ 63%]

...r.frameLoop(1, this, function() { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)

来源: Laya2.0_文档 发布时间: 20210715

26. SkyBoxMaterial材质详解(ActionScript-3D基础(AS3)-天空材质详解) [ 62%]

...meLoop(1, this, function():void { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)

来源: Laya2.0_文档 发布时间: 20210715

27. 骨骼drawCall太高 [ 61%]

...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Sin 赞同来自: 关于spine动画设置alpha后,drawCall暴涨的问题,能分享下是怎么解决的吗? 您说的alpha传进buff这块不知道该怎么处理。 2019-06-24 0 0 分享 微博 QZONE 微信 layabox 赞...

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

28. 来说说本人这两个月用laya引擎比较坑的两点吧 [ 61%]

...时候会导致pivot(轴心点)也要缩放。2、使用Math的cos和sin的时候需要传入的是弧度值,并非角度。 2018-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: 可能...

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

29. 如何使用3D场景2D人物进行混合开发(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 60%]

...e=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._position, th...

来源: Laya2.0_文档 发布时间: 20210714

30. 如何使用3D场景2D人物进行混合开发(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 60%]

...e=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._position, th...

来源: Laya2.0_文档 发布时间: 20210715