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

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

311. 发射射线检测不到,物体有包围盒 [ 51%]

...了Scene3d             scene3d.name = 'good';             self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.c...

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

312. 3D项目,如何判断一个3D模型是否在摄像机的范围内,有没有这方面的接口,,, [ 51%]

...其shinnedMeshRenderer直接点出属性isRender.完事 let mesh = this.owner.getChildAt(1) as Laya.SkinnedMeshSprite3D; console.log(mesh.skinnedMeshRenderer.isRender); 这是我测试时的模型和代码,实际使用根据模型的导出的层级和类型而定。附:我使用的是2.6.1...

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

313. this.scene.physicsSimulation.rayCastAll 报错 [ 51%]

...到的物体 this.text.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") }   上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用)     报错如下...

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

314. 设置后box2d 的 worldRoot 后平移场景 物理世界原地不动 [ 51%]

...能吗,这样可以 onAwake() { const self = this; self.gameObj = self.owner as Laya.Sprite; Laya.Physics.I.worldRoot = self.gameObj; this.cameraRect = new Laya.Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect.x = this.target.x - 400; this.came...

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

315. laya.physics.joint.MouseJoint [ 51%]

...mber鼠标关节在拖曳刚体bodyB时施加的最大作用力MouseJoint owner : Node [只读]获取所属Node节点。 Component  selfBody : RigidBody[首次设置有效]关节的自身刚体MouseJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties ...

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

316. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 50%]

...ya.Physics.rayCast(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画   2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

317. laya.d3.physics.PhysicsCollider [ 50%]

... isTrigger : Boolean 获取是否为触发器。 PhysicsTriggerComponent owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...

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

318. layacmd 安装不成功 [ 50%]

... ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR npm ERR! code 1 2017-11-24 添加评论 免费帖 --> 分享 微博 QZON...

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

319. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 50%]

...enemyHit);                     var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D;                     if(_enemy.layer==6)                     {                         if(this.enemy!=null)return                         console.log("检测...

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

320. 如何通过代码控制prefab上面的时间轴动画animation? [ 50%]

...作。 ... ani_show:Laya.FrameAnimation; onAwake(){ this.ani_show = this.owner["play"] as Laya.FrameAnimation; // 在onAwake中添加播放完成事件,基于某些原因,可能在onDisable的时候被移除,如果发现异常,可以选择在onEnable里面添加事件 this.ani_show.on(Laya.E...

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