大约有 36 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0024 秒)
...a.BoxMesh(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(1.5, 0.25, 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);...
来源: Laya_示例 发布时间: 20251130
...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(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.25, 20, 20))); sphere.transform.position = new Laya.V...
来源: Laya2.0_文档 发布时间: 20210715
...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(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.25, 20, 20))); sphere.transform.position = new Laya.V...
来源: Laya2.0_文档 发布时间: 20210714
...1 定义宽高0.5方块C的在0,0,-3位置,分组为2 定义半径为0.25的胶囊D的在0,0,-3位置,分组为2 定义半径为0.25的圆柱E的在0,0,-3位置,分组为2 使用shapecast方法将C目标cast到0,0,3的位置,得到返回值 使用shapecast方法将D目标ca...
来源: Laya_社区 发布时间: 20200321
....5, 0.5, 0.5))) as MeshSprite3D; box.transform.position = new Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Vector3(0, 45, 0), false, false); //球体 var sphere:MeshSprite3D = sprite3D.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(0.25, 20, 20))) as MeshSprite3D; sphere.transform.positio...
来源: Laya2.0_文档 发布时间: 20210715
...iveMesh.createBox(0.5, 0.5, 0.5); //球体 Laya.PrimitiveMesh.createSphere(0.25, 20, 20); //圆柱体 Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); //胶囊体 Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); //圆锥体 Laya.PrimitiveMesh.createCone(0.25, 0.75); //平面 Laya.PrimitiveMesh.crea...
来源: Laya3.0_文档 发布时间: 20251010
...shRender.material = boxMat; box.transform.position = new Laya.Vector3(1.5, 0.25, 0.5); box.transform.rotate(new Laya.Vector3(0, 30, 0), false, false); var boxCollider1 = box.addComponent(Laya.BoxCollider); boxCollider1.setFromBoundBox(box.meshFilter.sharedMesh.boundingBox); box.name = "正方体"; /...
来源: Laya_示例 发布时间: 20251130
...撞体不正常 默认radius:0.5, Height:2 但是设为radius:0.25, Height:1时胶囊碰撞体体正好包围蓝色胶囊网格体;再关闭编辑器重新打开项目时,发现碰撞胶囊体是大小 默认的0.5和2,但是数值是0.25和1 ----------------------------...
来源: Laya_社区 发布时间: 20240304
...h.createBox(0.5, 0.5, 0.5); var capsule = Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); var cylinder = Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); var cone = Laya.PrimitiveMesh.createCone(0.25, 0.75); var index = 0; //.............按钮点击事件 监听 changeMeshButton.on(Laya.Event.CLI...
来源: Laya2.0_文档 发布时间: 20210714
...h.createBox(0.5, 0.5, 0.5); var capsule = Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); var cylinder = Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); var cone = Laya.PrimitiveMesh.createCone(0.25, 0.75); var index = 0; //.............按钮点击事件 监听 changeMeshButton.on(Laya.Event.CLI...
来源: Laya2.0_文档 发布时间: 20210715