大约有 494 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0042 秒)
Laya_社区(165) Laya3.0_api(90) Laya2.0_api(78) laya_api(73) Laya2.0_文档(47) Laya_示例(34) Laya3.0_文档(7)
...关于四元数的相关内容 w1114367261 • 2018-04-18 20:20 Sprite3D.transform.rotate.Quaternion.createFromAxisAngle();
来源: Laya_社区 发布时间: 20180418
...l/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var material = warehouseMesh...
来源: Laya_社区 发布时间: 20171226
...cene()); let camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); scene.addChild(Laya.Sprite3D.load("../../../../../../../res/resourse/particle/ETF_Eternal_Light.lh")); //此...
来源: Laya_社区 发布时间: 20190301
...w 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; ...
来源: Laya_社区 发布时间: 20180116
...{ var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new MultiplePassOutlineMaterial(); //漫反射贴...
来源: Laya2.0_文档 发布时间: 20210714
...d(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理...
来源: Laya2.0_文档 发布时间: 20210715
...Sprite3D( new PlaneMesh())) as MeshSprite3D; Plane.transform.rotate(new Vector3(0,45,0),false,false); var material:StandardMaterial = new StandardMaterial(); material.diffuseTexture = Texture2D.load("res/layabox.png"); ...
来源: Laya_社区 发布时间: 20181018
...a.BoxColliderShape(b, 0, c); } this.MainScene3D.addChild(cardOne); cardOne.transform.position = pos; cardOne.transform.rotate(new Laya.Vector3(0,0,0), false, false); if(index == 0){ cardOne.meshRenderer.receiveShadow = true; }else{ var unlitMat = new Laya.PBRStandardMaterial(); var texture: Laya.Tex...
来源: Laya_社区 发布时间: 20191223
...w Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); material.albedoTexture = Laya.Texture2D.load("magic/sg.png"); box.meshRender.material = materia...
来源: Laya_社区 发布时间: 20180331
... this.camera = new Laya.Camera(); this.camera.transform.translate(new Laya.Vector3(0, 2, 5)); this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); this.scene.addChild(this.camera); Laya.loader.cr...
来源: Laya_社区 发布时间: 20191102