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

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

1. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 100%]

...x++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.cylinder.transform.position, this._up); } else{ //摄像机捕捉模...

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

2. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 99%]

...x++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.cylinder.transform.position, this._up); } else{ //摄像机捕捉模...

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

3. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 90%]

...void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up); } else if (index % 3 === 2){ //摄像机捕捉模型目标 camera.transform.lookAt(cylinder.transform.position, _up); } else{ //摄像机捕捉模型目标 camera.transform.lookA...

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

4. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 90%]

...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...

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

5. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 86%]

...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...

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

6. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 84%]

...相机 var camera = scene.addChild(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...

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

7. 使用2D地图3D人物混合进行游戏开发(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 84%]

...is._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...

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

8. 使用2D地图3D人物混合进行游戏开发(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 84%]

...is._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...

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

9. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 84%]

...irectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.transform.rotate(new Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法。在...

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

10. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 83%]

...相机 var camera = scene.addChild(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...

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