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

大约有 324 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)

31. 下面这段unity碰撞代码如何用laya2.0物理引擎实现 [ 71%]

...pulseForce, impulseForce);     a.Normalize();     base.gameObject.GetComponent<Rigidbody2D>().AddForce(a * num, ForceMode2D.Impulse); }   private void AddPlayerForce(Collision2D collision, float playerStrong, float impulseForce) {     if (playerStrong == 0f || impu...

来源: Laya_社区 发布时间: 20191028

32. bug,ChainCollider.points第二次设置,会报错! [ 71%]

...0,0,100,0)确实不会报错,但如果是已存在,比如先设置sp.getComponent(ChainCollider).points = "25,25,50,50";运行后,再改变值时(如果一次运行中连续赋值2次,是不会报错的,必须执行再赋值),就会报错。 如下使用2d示例项目中代码,改写...

来源: Laya_社区 发布时间: 20181130

33. laya.d3.core.light.DirectionLight_API3.0 [ 71%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf rep...

来源: Laya3.0_api 发布时间: 20231115

34. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 70%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getHeight hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren remo...

来源: Laya3.0_api 发布时间: 20231102

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

...dRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshRenderer.material).albedoColor = new Vector4(1, 0, 0,...

来源: Laya2.0_文档 发布时间: 20210715

36. 调试辅助工具打开以后,运行是黑屏,有人知道咋回事吗 [ 70%]

...Prafab加了.SphereCollider 和rigidbody,但是在laya里我只能获取到getComponent(Laya.Rigidbody3D);而getComponent(Laya.SphereColliderShape)却是空值。咋回事呢 156*****130 • 2020-12-15 16:42 我把2.7.1版本的替换进去还是黑屏 157*****593 • 2020-12-15 17:08 有demo吗,...

来源: Laya_社区 发布时间: 20201209

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

...dRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshRenderer.material).albedoColor = new Vector4(1, 0, 0,...

来源: Laya2.0_文档 发布时间: 20210714

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

...dRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshRenderer.material as BlinnPhongMaterial).albedoColor ...

来源: Laya2.0_文档 发布时间: 20210715

39. laya.d3.core.MeshSprite3D_API3.0 [ 70%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf rep...

来源: Laya3.0_api 发布时间: 20231115

40. laya.d3.core.particleshuriken.ShuriKenParticle3D_API3.0 [ 70%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf rep...

来源: Laya3.0_api 发布时间: 20231115