大约有 86 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0050 秒)
...sh.createCone(raidius, height)); scene.addChild(cone); //设置材质 cone.meshRenderer.material = mat4; //设置位置 cone.transform.position = new Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody:Rigidbody3D = cone.addComponent(Rigidbody3D); //创建球型碰撞器 var con...
来源: Laya2.0_文档 发布时间: 20210714
...sh.createCone(raidius, height)); scene.addChild(cone); //设置材质 cone.meshRenderer.material = mat4; //设置位置 cone.transform.position = new Laya.Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody:Laya.Rigidbody3D = cone.addComponent(Laya.Rigidbody3D); //创建球型...
来源: Laya2.0_文档 发布时间: 20210714
...(); earthMat.albedoTexture = Texture; earthMat.albedoIntensity = 1; earth1.meshRenderer.material = earthMat; })); ``` ## 本文赞赏 如果您觉得本文对您有帮助,欢迎扫码赞赏作者,您的激励是我们写出更多优质文档的动力。 
来源: Laya2.0_文档 发布时间: 20210714
...oid { //碰撞开始后,物体改变颜色 (this.owner.getComponent(Laya.MeshRenderer).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D),也就是碰撞生命周期内的...
来源: Laya3.0_文档 发布时间: 20250103
...节点: 1. Transform 2. MeshFilter 3. MeshRenderer 4. SkinnedMeshRenderer 5. Animation 6. Animator (新) 7. Terrain 8. ParticleSystem(使用须知) 关于导出工具的使用...
来源: Laya_社区 发布时间: 20170428
...eMesh.createBox(0.75, 0.5, 0.5))) as Laya.MeshSprite3D; //设置材质 box.meshRenderer.material = this.mat1; //设置空间位置 let transform = box.transform; let pos = transform.position; pos.setValue(1, 6, 0); transform.position = pos; //创建刚体碰撞器 let _rigidBody = box.addComponent(L...
来源: Laya2.0_文档 发布时间: 20210715