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

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

201. Laya2D 物理关节的动态使用方法 以及contact.getHitInfo报错问题 [ 53%]

...怎么在代码设置 实现粘黏效果 核心代码如下: 只需要在addcomponent前将otherBody指向就行 -----------------------第二个就是 contact.getHitInfo() 碰撞信息这个参数报错问题  修改laya.physicsc.js 中_sendEvent函数如图 ----------这个问题官方大大更...

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

202. laya.display.Node [ 53%]

...位置。 Node  addChildren(... args):void 批量增加子节点 Node  addComponent(type:Class):* 添加组件。 Node  addComponentIntance(comp:Component):* 添加组件实例。 Node  addInputChild(node:Node):NodeNode  callLater(method:Function, args:Array = null):void 延迟运行指定...

来源: Laya2.0_api 发布时间: 20190513

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

...ody3D); //创建约束 var configurableConstraint:ConfigurableJoint = boxA.addComponent(ConfigurableConstraint); //为约束设置两个连接刚体 configurableConstraint.setConnectRigidBody(boxARigid,boxBRigid); ``` - 2.设置锚点anchor和连接锚点connectAnchor ```typescript //设置锚点anc...

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

204. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 53%]

...l width Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getHeight hasHideFlag ha...

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

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

...ChildByName("ground");            //****新增代码*****, ground.addComponent(Laya.ChainCollider);                       //****新增代码*****, this._chains=ground.getComponent(Laya.ChainCollider);   //****新增代码*****, }   报错内容: at Object.box2d.b2Asse...

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

206. 导出的3D资源加载报错 [ 52%]

...sition=new Vector3(0, 5, 10); //加入摄像机移动控制脚本 //camera.addComponent(CameraMoveScript); //添加蒙皮动画角色模型 var role3D:Sprite3D=Laya.loader.getRes("res/LayaScene_layaScene/layaScene.lh"); //加载到场景 scene.addChild(role3D); } } 附件 : --> LayaScene_layaScene.r...

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

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

...ody3D); //创建约束 var configurableConstraint:ConfigurableJoint = boxA.addComponent(ConfigurableConstraint); //为约束设置两个连接刚体 configurableConstraint.setConnectRigidBody(boxARigid,boxBRigid); ``` - 2.设置锚点anchor和连接锚点connectAnchor ```typescript //设置锚点anc...

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

208. js中使用sharedMesh报错 [ 52%]

...),false); warehouse1.name = "仓库1"; var warehouseCollider1 = warehouse1.addComponent(Laya.MeshCollider); warehouseCollider1.mesh = warehouse1.meshFilter.sharedMesh;错误信息: TypeError: Cannot read property 'sharedMesh' of undefined at onComplete (file:///E:/LayaWorkspace/javaScriptLaya/src/...

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

209. Cannot read property '_physicsUpdateList' of null 错误 [ 52%]

...ad property '_physicsUpdateList' of null 错误 添加 var collider = ball.addComponent(Laya.PhysicsCollider) 添加碰撞以后 再销毁 destroy这个对象的时候 就出错了   Uncaught TypeError: Cannot read property '_physicsUpdateList' of null     at PhysicsCollider.__proto._onDestroy (...

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

210. 官方DynamicBatchTest照做为什么动态合不了批? [ 52%]

... camera.transform.rotate(new Laya.Vector3(-40, 0, 0), true, false); camera.addComponent(CameraMoveScript);   Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 5...

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