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

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

1. 物理系统之ConfigurableConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 100%]

...-------------- | ---------------------------------------- | | setAxis(axis:Vector3,secondaryAxis:Vector3) | Axis和Secondary Axis | 设置对象自然旋转的局部轴主轴 | | XMotion | XMotion | 设置x轴线性轴上运动的模式 | | YMotion | YMotion | 设置y轴线性轴上运动的模式 |...

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

2. 物理系统之ConfigurableConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 99%]

...-------------- | ---------------------------------------- | | setAxis(axis:Vector3,secondaryAxis:Vector3) | Axis和Secondary Axis | 设置对象自然旋转的局部轴主轴 | | XMotion | XMotion | 设置x轴线性轴上运动的模式 | | YMotion | YMotion | 设置y轴线性轴上运动的模式 |...

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

3. 物理系统之ConfigurableConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 99%]

...刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshR...

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

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

...坐标,false是相对世界坐标。 camera.transform.translate(new Laya.Vector3(0, 0, 3),false); //加载到场景 scene.addChild(camera); ``` ​ 旋转摄像机: ```typescript //旋转相机。局部坐标,弧度制(false为角度制)。 camera.transform.rotate(new Laya.Vector3(0, 0, 3)...

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

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

...坐标,false是相对世界坐标。 camera.transform.translate(new Laya.Vector3(0, 0, 3),false); //加载到场景 scene.addChild(camera); ``` ​ 旋转摄像机: ```typescript //旋转相机。局部坐标,弧度制(false为角度制)。 camera.transform.rotate(new Laya.Vector3(0, 0, 3)...

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

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

...部坐标,false是相对世界坐标。 camera.transform.translate(new Vector3(0, 0, 3),false); //加载到场景 scene.addChild(camera); ``` ​ 旋转摄像机: ```typescript //旋转相机。局部坐标,弧度制(false为角度制)。 camera.transform.rotate(new Vector3(0, 0, 3), true,...

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

7. 场景雾化(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 85%]

... scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Laya.Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)

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

8. 场景雾化(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 85%]

... scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Laya.Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)

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

9. 场景雾化(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 85%]

...码 scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)

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

10. SpotLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 83%]

...t()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); s...

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