大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0019 秒)
...ddChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))); ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞器形状 ```typescript //创建盒子形状碰撞器 var boxShape = new CannonBoxColliderShape(sX, sY...
来源: Laya2.0_文档 发布时间: 20210715
...hreeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时已经拿到了场景中的球体的网格 ``` #### 修改子对象模型网格 获取子对象...
来源: Laya2.0_文档 发布时间: 20210714
...Sprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody: CannonRigidbody3D = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞器形状 ```typescript //创建盒子形状碰撞器 var boxShape: CannonBoxCollid...
来源: Laya2.0_文档 发布时间: 20210714
...cene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere") as MeshSprite3D; //获取精灵的mesh var sphereMesh:Mesh = sphere.meshFilter.sharedMesh; //此时已经拿到了场景中的球体的网格 ``` #### 修改子...
来源: Laya2.0_文档 发布时间: 20210714
...hreeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时已经拿到了场景中的球体的网格 ``` #### 修改子对象模型网格 获取子对象...
来源: Laya2.0_文档 发布时间: 20210715