大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0014 秒)
...BoundBox(box.meshFilter.sharedMesh.boundingBox); box.name = "正方体"; //球体 var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25))); var sphereMat = new Laya.StandardMaterial(); sphereMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); sp...
来源: Laya_示例 发布时间: 20241118
...5, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25))); sphere.transform.position = new Laya.Vector3(0.5, 0.25, 0.6); //圆柱体 var cylinder = scene.addChild(new Laya.MeshSprite3D(new Laya.Cyli...
来源: Laya_示例 发布时间: 20241118
...ndBox(sprite3d4.meshFilter.sharedMesh.boundingBox); //用球模拟精灵的球体碰撞器 sphereMesh = new Laya.SphereMesh(1, 32, 32); sphereSprite3d = scene.addChild(new Laya.MeshSprite3D(sphereMesh)); var mat = new Laya.StandardMaterial(); mat.albedo = new Laya.Vector4(1, 1, 1, 0.5); mat.renderMo...
来源: Laya_示例 发布时间: 20241118