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

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

121. VR摄像机怎么设置坐标跟拍摄角度? [ 67%]

... camera = scene.addChild(new Laya.VRCamera( 0.03, 0, 0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(93, 64, -33)); camera.transform.rotate(new Laya.Vector3(0.05, 155, 0), true, false); camera.clearColor = null; camera.addComponent(VRCameraMoveScript); 我这样跟传统的摄像机一样...

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

122. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 67%]

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

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

123. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 67%]

...清除颜色 camera1.clearColor = new Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; cam...

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

124. 关于3d项目中component的问题 [ 66%]

...s3D.convert3DCoordTo2DScreenCoord(translate, convertTranslate); this.owner.transform.localPosition = convertTranslate; } } }()); 2016-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你...

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

125. 相机(3D物体)旋转之后,xyz还是之前那个方向 [ 66%]

...后,xyz还是之前那个方向 没旋转之前走动正常 this.camera.transform.localRotation先旋转 this.camera.transform.translate(this._tempVector3,false); 再移动 控制y轴向前走,斜着走或者是后面走,反正不正常   2020-09-09 添加评论 免费帖 --> 分享 微博 Q...

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

126. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 66%]

加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” 我从unity工程导出prefab到layaair中使用,根据文档中的介绍,使用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya...

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

127. 摄像机的正交投影和透视投影(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 66%]

...大小 camera.orthographicVerticalSize = 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_文档 发布时间: 20210715

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

...大小 camera.orthographicVerticalSize = 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

129. 我想用代码来绘制一个3D球如何弄呢?看我写的 [ 66%]

...e()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); // camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); // camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); //球体 var sphere = new Laya.SphereM...

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

130. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 66%]

... let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);  let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.tra...

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