大约有 211 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var Vector3 = Laya.Vector3; var scene = Laya.stage.addChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; //var env = 'AtticRoom'; //var env = 'overcloud'; var envinfo = '../../res/threeDimen/env/' ...
来源: Laya_示例 发布时间: 20241117
....Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D ...
来源: Laya_社区 发布时间: 20220721
....addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight = scene.addChild(new Laya....
来源: Laya_社区 发布时间: 20170807
..._NONE; Laya.Stat.show(); this.tmpVector = new Laya.Vector3(0, 0, 0); this.scene = Laya.stage.addChild(new Laya.Scene3D()); //初始化照相机 let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.tra...
来源: Laya_社区 发布时间: 20201127
...rite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0, -0.2); private translateA: Laya.Vector3 = new Laya.Vector3(0.2, 0, 0); private translateD: Laya.Vector3 = new Laya.Vector3(-0.2,...
来源: Laya_社区 发布时间: 20200917
... = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); // 生成平面,其实是一个box,只不过高度很小,可看成一个平面 var plane = scene.ad...
来源: Laya_社区 发布时间: 20170314
...节点也跟随移动 this.layaMonkeyParent.transform.translate(new Laya.Vector3(-0.2, 0, 0); (动图3-2) 通过点击按钮,让子节点移动,可以看到父节点并没有移动 this.layaMonkeySon.transform.translate(new Laya.Vector3(-0.2, 0, 0); 四、克隆 关于克隆,LayaAir3D中...
来源: Laya3.0_文档 发布时间: 20241014
...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...
来源: Laya_社区 发布时间: 20170714
...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
...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...
来源: Laya_社区 发布时间: 20190224