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

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

1. [BUG]刚体约束问题,移动后约束混乱! [ 100%]

...0.1, 100)) as Laya.Camera;     camera.transform.translate(new Laya.Vector3(0, 3, 30));          //方向光     const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;     directionLight.color = new Laya.Vector3(1, 1, 1);  ...

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

2. 为什么rotation、scale赋值了不管用? [ 97%]

...shSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,但是我放到frameloop里就有用,请问这是为什么?要怎么解决? 2018-03-09 ...

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

3. 有标量与Vector3的乘法公式吗? [ 96%]

有标量与Vector3的乘法公式吗? 有标量与Vector3的乘法公式吗? 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 sfsmmc 赞同来自: 。。。官方有。。。 Vector3.scale() https:/...

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

4. 正交摄像机裁剪问题 [ 96%]

...dChild(new Laya.Camera(0, 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation); camera.transform.rotation = rotation; camera.clearColor = new Laya.Vector4(1, 1...

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

5. viewportPointToRay产生的射线始终有偏差,是为什么? [ 93%]

...为什么? 我使用这种方式构造了一个射线: let point = new Vector2(Laya.stage.mouseX, Laya.stage.mouseY); camera.viewportPointToRay(point, this._ray);然后发现ray构造出来的位置始终不对,我沿着ray的方向放了一组3D物体,和从屏幕点击下去的位置始终...

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

6. 【初学者】导入模型进行旋转结果出现问题 [ 86%]

....Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.Dir...

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

7. Resources already exist,is repeated loading 加载特效报重复加载 [ 86%]

...formDemo{     private scene:Laya.Scene3D;     private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private rotate:Laya.Vector3 = new Laya.Vector3(0, 1, 0);     private scale:Laya.Vector3 = new Laya.Vector3()...

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

8. laya默认模型的阴影没有渲染 [ 85%]

...Child(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya...

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

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

...Child(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; // var directionLight = scene.a...

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

10. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 84%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight....

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