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

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

1. this.scene.physicsSimulation.rayCastAll 报错 [ 100%]

this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray);   /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...

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

2. Laya.Physics上不存在rayCastAll [ 92%]

...9-26 14:48 浏览: 2750 关注: 3 人 NilZ • 2019-09-27 14:45 this.scene.physicsSimulation.rayCastAll(this._ray, this.outs);是在scene的physicsSimulation对象。可以看一下源码。 boom • 2019-06-26 16:43 是F9里面的physics3d 吗?那个我已经打开了

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

3. Laya.Physics.rayCastAll 和 Laya.RaycastHit [ 83%]

...d = new Laya.Scene3D(); let outHitInfoAll = new Laya.HitResult(); scene3d.physicsSimulation.rayCastAll(this.ray, outHitInfoAll, depth); 2018-12-19 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Max.魚魚魚鱼魚魚 相关问题 Laya.R...

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

4. 关于2.0.1版本,rayCastAll方法有bug的问题 [ 81%]

...(radis), 0, Math.sin(radis))); let hitResult = new Array(); this.mainScene.physicsSimulation.rayCastAll(rays[i], hitResult); console.log(rays[i], hitResult); }我注意到2.0.0的时候有人提过这个问题,但是这个bug似乎还是没有得到解决 附件 : --> ray_test_h5.rar 2019-04-03 ...

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

5. LayaNative ShapeCast闪退 [ 69%]

...代码如下: // ---------这部分代码会崩溃         scene.physicsSimulation.shapeCastAll(colliderShape, new Laya.Vector3(-10,0,0), new Laya.Vector3(10,0,0), hitResults);         // ---------代码结束          // ---------这部分代码不会崩溃     ...

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

6. 请问2.0射线到底如何使用呢? [ 68%]

请问2.0射线到底如何使用呢? 老api不能用,必须使用PhysicsSimulation这个类,但下面这么用一直没有东西,求指点 this.mousePos=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ra...

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

7. 用raycast选取实体,hitresult始终是false [ 57%]

...范例,Laya.Physics.raycast方法已经不能用了;   从网上找了physicsSimulation.raycast方法,但无论如何,outHitResult的结果都是false,不知道哪里设置不正确   另外,射线的位置和方向也很奇怪,好像并没有穿过viewport中鼠标点击的位置,...

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

8. Laya2.7.1 射线提示rayCast未定义 [ 55%]

...间生成的射线 this.camera.viewportPointToRay(point, ray); this.scene.physicsSimulation.rayCast(ray,outHitResult); //如果碰撞到物体 if (outHitResult.succeeded) { } }}  求问哪里语法错了 附件 : --> 2020-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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