• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 361 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

161. laya3d物体碰撞与触发检测的问题 [ 68%]

...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

162. 物理系统之ConfigurableConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 68%]

...刚体,创建约束,为约束绑定两个刚体 ```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

163. 物理系统之ConfigurableConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 68%]

...刚体,创建约束,为约束绑定两个刚体 ```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

164. 自定义shader-边缘光照shader [ 67%]

...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_示例 发布时间: 20240930

165. 物理系统之ConfigurableConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 67%]

...刚体,创建约束,为约束绑定两个刚体 ```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

166. 关于3D物件半透明漫反射率(官网上的例子)的BUG。 [ 67%]

...    //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

167. 角色碰撞器添加复合型碰撞形状,报错Qt[a[((a[(t >> 2)] + 8) >> 2)]] is not a function [ 67%]

...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

168. 为模型指定地形材质报错 [ 67%]

为模型指定地形材质报错 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

169. 《用LayaAir IDE制作3D角色创建与选择界面》js版本角色动画无法运行 [ 67%]

...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

170. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 67%]

...(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