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

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

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

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

2. 摄像机捕捉目标(JavaScript-3D基础(JS)-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. 摄像机捕捉目标(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

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

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

5. 摄像机的移动和旋转(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 96%]

...继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 ​ 移动摄像机: ```typescript //实例化一个相机,设置纵横比,0为自动匹配。0.1...

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

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

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

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

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

8. 摄像机的移动和旋转(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 96%]

...继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 ​ 移动摄像机: ```typescript //实例化一个相机,设置纵横比,0为自动匹配。0.1...

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

9. 摄像机的移动和旋转(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 96%]

...继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 ​ 移动摄像机: ```typescript //实例化一个相机,设置纵横比,0为自动匹配。0.1...

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

10. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 92%]

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

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