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

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

61. 摄像机的正交投影和透视投影(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 68%]

...ticalSize = 7; //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); ``` ![](img/2.png)(图2)正交投影的效果图

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

62. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 68%]

...根据移动的距离进行旋转 (owner as Sprite3D).transform.rotate(new Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ _text.text = "触控点为2"; isTwoTouch = true; //获取两个触碰点 var touch:Touch = _scene.input.getTouch(0); var touch2:Touch = ...

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

63. laya阴影问题 [ 68%]

...dByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index++) { var a = 0.05; var b = 0.2; var c...

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

64. 摄像机的正交投影和透视投影(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 68%]

...icVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transform.rotate(new Vector3( -30, 0, 0), true, false); ``` ![](img/2.png)(图2)正交投影的效果图

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

65. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 67%]

...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...

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

66. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 67%]

...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...

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

67. discard property,please use transform's property instead [ 67%]

...aya.Camera(0, 0.1, 1000));         camera.transform.translate(new Laya.Vector3(0, 1.5, 4));         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);         camera.addComponent(CameraMoveScript);         //方向光         var directionLight = scene.addChild(ne...

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

68. laya.d3.core.Transform3D [ 67%]

...calMatrix : Matrix4x4 获取局部矩阵。 Transform3D  localPosition : Vector3 获取局部位置。 Transform3D  localPositionX : Number 获取局部位置X轴分量。 Transform3D  localPositionY : Number 获取局部位置Y轴分量。 Transform3D  localPositionZ : Number 获取局部...

来源: Laya2.0_api 发布时间: 20190513

69. PBR标准材质实时阴影渲染问题 [ 67%]

...; // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node)...

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

70. 射线BUG [ 67%]

...gScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 1...

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