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

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

1. 同一类型光源互斥的问题报告 [ 100%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(3, 8, 10)); camera.transform.lookAt(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 1, 0)); camera.clearColor = new Laya.Vector3(0.3, 0.3, 0.5); camera.addComponent(CameraMoveScript); //创建点光[左下角]---------...

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

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

...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

3. 3D中摄像机绕物体旋转该如何实现? [ 98%]

...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...

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

4. 官方案例里摄像机绕物体旋转脚本的问题 [ 98%]

...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...

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

5. rigidBody.applyForce 物体不会移动 [ 97%]

...rite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0, -0.2); private translateA: Laya.Vector3 = new Laya.Vector3(0.2, 0, 0); private translateD: Laya.Vector3 = new Laya.Vector3(-0.2,...

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

6. 动态阴影被切割了?为啥没有显示完成的阴影 [ 96%]

...eshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.mat...

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

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

...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. 加载不了模型 [ 96%]

...a.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraMoveScript);         //添...

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

9. 3D加载不了 [ 96%]

...a.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraMoveScript);         //添...

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

10. layabox 只支持一个灯光? [ 96%]

...ew Laya.SpotLight()) as Laya.SpotLight; this.loadCCDlight.color = new Laya.Vector3(1, 1, 1); this.loadCCDlight.transform.position = new Laya.Vector3(-1, 1.2, 0.0); this.loadCCDlight.direction = new Laya.Vector3(0.15, -1.0, 0.0); this.loadCCDlight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); this.l...

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