大约有 58 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0026 秒)
...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
...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
...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
...irectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.transform.rotate(new Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 (图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法。在...
来源: Laya2.0_文档 发布时间: 20210715
...继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 移动摄像机: ```typescript //实例化一个相机,设置纵横比,0为自动匹配。0.1...
来源: Laya2.0_文档 发布时间: 20210715
...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 (图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...
来源: Laya2.0_文档 发布时间: 20210715
...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 (图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...
来源: Laya2.0_文档 发布时间: 20210715
...继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 移动摄像机: ```typescript //实例化一个相机,设置纵横比,0为自动匹配。0.1...
来源: Laya2.0_文档 发布时间: 20210714
...继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 移动摄像机: ```typescript //实例化一个相机,设置纵横比,0为自动匹配。0.1...
来源: Laya2.0_文档 发布时间: 20210715
...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