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

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

31. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 81%]

... let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);  let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.tra...

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

32. 怎么设置模型高度 [ 81%]

..., 0.6); var box = new Laya.MeshSprite3D(boxmesh); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.mate...

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

33. 关于3D物件半透明漫反射率(官网上的例子)的BUG。 [ 80%]

...addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 0, 6));         camera.clearColor = null;         //材质         var material = new Laya.StandardMaterial();         material.diffuseTexture = Laya.Texture2D.load("Ass...

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

34. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 80%]

...me = "camera";         //相机平移位置         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         //旋转相机         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光 ...

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

35. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 77%]

...camera = scene.addChild(new Laya.Camera(0, 0.1, 0)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 20)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = new Laya.Vector4(0.2, 0.2, 0.2, 1.0); var directionLight = scene.addChild(new Laya.Direct...

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

36. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 76%]

....onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents.x; this.osizez = other._transformOrientedBoundBox.extents...

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

37. 如何在3D旋转中使用缓动 Laya.Tween.to()?官方示例我看过,不是旋转 [ 75%]

...en.to()? 我看过官方示例,不是旋转 Laya.Tween.to(this.camera.transform.localRotationEuler, { x: _vector3.x, y: _vector3.y, z: _vector3.z + (20 * Math.PI / 180) }, 500); 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

38. 缓动Tween能用在3D物体或者特效上面吗? [ 75%]

... 、lenovo 、Max.魚魚魚鱼魚魚 、叶子   Laya.Tween.to(this.box.transform, {     localPositionX : this.box.transform.localPositionX + 8, //x坐标移动8     localRotationEulerY : 90 //角度旋转90度 }, 300) 2018-11-16 4 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 可以...

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

39. laya3D 发部为android,只要一创建场景(包括空场景)就有如下报错,并且黑屏 [ 74%]

...; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCamera = camera; //...

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

40. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 70%]

... { this.camera = this.owner as Laya.Camera; if (this.target) { this.target.transform.position.cloneTo(this.curpos); this.delatpos = new Laya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 * 此方法为虚方法,使用时重写覆...

来源: Laya3.0_文档 发布时间: 20231214