大约有 183 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0037 秒)
...觉效率有点低啊…… 比如: package { import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import...
来源: Laya_社区 发布时间: 20170331
... var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 va...
来源: Laya_社区 发布时间: 20180717
...inScene/XunLongShi.ls")); //删除原始资源中包含的默认相机 var camera = this.scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.removeSelf(); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); c...
来源: Laya_示例 发布时间: 20241123
...reeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 this.camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 6, 13)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.addComponent(CameraM...
来源: Laya_示例 发布时间: 20241123
...default class GameUI { //宣告場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS:...
来源: Laya_社区 发布时间: 20200917
...后 出现了检测不到碰撞的问题 请问这个是什么原因 this.camera = scene.addChild(new Laya.Camera(0, 0.3, 100)) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 25, 16)); this.camera.transform.rotate(new Laya.Vector3(-56, 0, 0), true, false); 2018-10-15 添加评...
来源: Laya_社区 发布时间: 20181015
...如下: //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera: Laya.Camera = new Laya.Camera(0, 0.1, 1000); //加载到场景 this.scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(-3, 1.5, 6); //旋转摄像机角度 camera.transform.rota...
来源: Laya_社区 发布时间: 20180910
...gnH = "left"; let scene = Laya.stage.addChild(new Laya.Scene3D()); 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.Directio...
来源: Laya_社区 发布时间: 20200915
VR摄像机怎么设置坐标跟拍摄角度? var 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(VRCam...
来源: Laya_社区 发布时间: 20170707
...var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_S...
来源: Laya_社区 发布时间: 20200728