大约有 361 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0056 秒)
...or3(1, -1, 0)); //添加自定义模型1 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.addComponent(Laya.PhysicsCollider); var Rig=box.addComponent(Laya.Rigidbody3D); Rig.colliderShape=new Laya.BoxColliderShape(1,1,1); Rig.isTrigger=true; box.transform.t...
来源: Laya_社区 发布时间: 20190314
...刚体,创建约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigid...
来源: Laya2.0_文档 发布时间: 20210715
...刚体,创建约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigid...
来源: Laya2.0_文档 发布时间: 20210714
...ion = new Laya.Vector3(0, 0.5, 0); }); var earth = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.5, 128, 128))); var customMaterial = new CustomMaterial(); customMaterial.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/texture/earth.png")); customMaterial.setMarginalColor(ne...
来源: Laya_示例 发布时间: 20250220
...刚体,创建约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigid...
来源: Laya2.0_文档 发布时间: 20210715
... //3D物件,正方体 var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; box.transform.position = new Laya.Vector3(2.5, 1.5, 0); box.transform.rotation = new Laya.Quaternion(-0.373,-0.070,0.16,0.91); ...
来源: Laya_社区 发布时间: 20180119
...t;<报错: //飞机 let plane = scene.getChildByName("plane") as Laya.MeshSprite3D; let character: Laya.CharacterController = plane.addComponent(Laya.CharacterController); let collider_shape_box = new Laya.BoxColliderShape(2.5, 0.8, 0.8); collider_shape_box.localOffset.x = -0.5; let collide...
来源: Laya_社区 发布时间: 20210101
为模型指定地形材质报错 var lineMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("line/lineMesh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); ...
来源: Laya_社区 发布时间: 20170615
...(null, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; ea...
来源: Laya2.0_文档 发布时间: 20210715
...efined at SkinAnimations.__proto._update (laya.d3.js:34002) at MeshSprite3D.__proto._updateComponents (laya.d3.js:21363) at MeshSprite3D.__proto._update (laya.d3.js:36715) at Scene.__proto._updateChilds (laya.d3.js:27736) at Scene.__proto._updateScene (laya.d3.js:27940)...
来源: Laya_社区 发布时间: 20180105