大约有 79 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0033 秒)
...yaScene_Alien/Assets/FBXs_Stacy/EnvArctic_alien-EnvArctic_alien.lm"); this.meshSprite3D = new Laya.MeshSprite3D(tempmodels); scene.addChild(this.meshSprite3D); this.meshSprite3D.transform.position.x = 0; this.meshSprite3D.transform.position.y = 0; this.meshSprite3D.transform.position.z = 10; ...
来源: Laya_社区 发布时间: 20180926
...影质量 light.shadowResolution=2048; //创建盒子模型 let box:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(5,5,1.5))) as Laya.MeshSprite3D; //接受阴影 box.meshRender.receiveShadow=true; // 创建球体模型 let sphere:Laya.MeshSprite3D = scene.addChild(new Lay...
来源: Laya_社区 发布时间: 20180302
...法?如果是,有没有办法实现旋转之后回调? var cube:MeshSprite3D; // 省略了添加到场景中的代码 // 先移动锚点 cube.transform.pivot = new Vector3( cube.transform.pivot.x + 0, cube.transform.pivot.y - height/2,...
来源: Laya_社区 发布时间: 20190427
...ion = new Vector3( 1, 1, 0 ); 可以類似這樣寫 var Mesh_Boss = new MeshSprite3D( Mesh.load( Consts.Mesh_Boss01 ) ) as MeshSprite3D; Mesh_Boss.transform.localPosition = new Vector3( -7.36, -1.03, 0 ); 2017-07-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...
来源: Laya_社区 发布时间: 20170726
....animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.RenderTexture; import laya.d3.resource.models.Mes...
来源: Laya_社区 发布时间: 20170209
...ild(new Laya.Sprite3D()); //正方体 var box = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(ne...
来源: Laya2.0_文档 发布时间: 20210715
...ild(new Laya.Sprite3D()); //正方体 var box = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(ne...
来源: Laya2.0_文档 发布时间: 20210714
...er = Monster; // this.master_turn(); //添加自定义模型 var box: Laya.MeshSprite3D = this.scene.addChild( new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(2, 2, 2)) ) as Laya.MeshSprite3D; box.transform.translate(new Laya.Vector3(5, 5, 5)); box.transform.rotate(new Laya.Vector3(0, 45, 0), fal...
来源: Laya_社区 发布时间: 20200917
...图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", La...
来源: Laya2.0_文档 发布时间: 20210715
...块生成路径点 initPath(this.scene); //获取可行走区域模型 var meshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap'); //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/...
来源: Laya_示例 发布时间: 20250220