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

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

151. 1.5版本:3D Camera无法使用? [ 59%]

...ld(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可! 2016-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 JUNLIU 相关问题 2.0一不小心删了bin目录...

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

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

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

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

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

154. 3d点光源究竟有无衰减参数设置的? [ 59%]

... pointLight.diffuseColor = new Laya.Vector3(1, 1, 1); pointLight.transform.translate(new Laya.Vector3(0, 30, 0)); pointLight.attenuation = new Laya.Vector3(3.0, 3.0, 3.0); pointLight.range = 30.0; 发现是没有衰减的,一个半圆这样,跟电筒照出来的一样,好难看啊 2017-07-14 ...

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

155. 怎么设置3D相机,模型的绝对值 [ 58%]

...ra.transform.position = new Laya.Vector3(0, 10, 40); this.camera.transform.translate(new Laya.Vector3(0, 10, 40)); this.camera.transform.rotate(new Laya.Vector3(0, 10, 0), true, false); 做一个按钮,专门切换到90度的视图上,怎么设置相机的绝对值,这样的写的话每次点击按...

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

156. unity3d导出的模型 ,子模型不能通过代码旋转,移动是可以的 [ 58%]

...转,移动是可以的 通过getChildbyName获得子物体,可以通过translate移动,但是旋转就不行了,rotate,rotation都试过了都没效果。 2019-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

157. 怎么设置模型高度 [ 58%]

...r box = new Laya.MeshSprite3D(boxmesh); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = mat...

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

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

...era.orthographicVerticalSize = 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

159. 射线检测-放置物体 [ 58%]

...ar camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.col...

来源: Laya_示例 发布时间: 20241001

160. 怎么添加脚本? [ 58%]

...ew 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);             camera.clearColor = null;             camera.clearFlag = BaseCamera.CLEARFLAG_...

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