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

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

291. 请问官方API中有反余弦的方法吗? [ 57%]

...容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 赖床ing Math.acos(); 2019-05-17 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 赖床ing 相关问题 发起问题须知,必看!!!不按...

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

292. localRotationEulerY旋转位置错误 [ 57%]

...= this.arr[1].transform.position;         let angle: number = Math.atan2((point2.x - point1.x), (point2.z - point1.z)) * (180 / Math.PI); //角度         this.arr[0].transform.localRotationEulerY = angle;         console.log("position = ",this.arr[0].trans...

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

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

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

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

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

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

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

295. 没有人尝试使用3d物理引擎么 [ 57%]

...material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; import laya.d3.resource.models....

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

296. 怎么生成唯一的随机数啊 [ 57%]

...内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 直接用Math.random生成随机数即可! 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 h690759643 相关问题 laya2的Scene默认是文件模式,不会...

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

297. drawTexture 画出来的数据会有以前的数据 [ 57%]

...on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) ht...

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

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

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

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

299. 灯光-方向光 [ 57%]

...core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author ... */ public...

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

300. IBQuadrangle不停上涨,如何定位? [ 57%]

...长时间玩会引发 throw Error("IBQuadrangle count:"+count+" must<:"+Math.floor(65535 / 4)); 游戏sprite的峰值在500以下,稳定后,基本不会新增对象。 游戏重绘稍微有点高,是因为重绘吗? 2018-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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