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

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

1. RayCastAll检测bug [ 100%]

RayCastAll检测bug 屏幕点击发射线检测碰撞,使用rayCast是没有问题的,使用rayCastAll只有第一次返回的点是正确的,之后返回的点就不会发生变化了,怀疑这里有bug,因为使用的是ts,对应的源码查看不了。 翻了一下as3的代码,发...

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

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

Laya.Physics上不存在rayCastAll   附件 : --> 2019-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: raycastAll 是3d的  physics3d 里的 , 你那个是2d的 2019-06-26 0 1 ...

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

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

Laya.Physics.rayCastAll 和 Laya.RaycastHit 这个两个东西 rayCastAll 在文档里能搜索到,但我在射线检测,这么写运行就提示没有该方法 Laya.Physics.rayCastAll(this.ray, this.outHitAllInfo, 30, 0); RaycastHit 是在创建是时候就报错了 提示没有这个东西。...

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

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

关于2.0.1版本,rayCastAll方法有bug的问题 在循环调用rayCastAll方法时,总是最后的结果覆盖了前面的结果 let rays = []; for (let i = 0; i < 8; i++) { let radis = i * 2 * Math.PI / 8; rays[i] = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(Math.cos(radis),...

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

5. rayCastAll方法返回的碰撞结果数组没有排序(版本2.6) [ 94%]

rayCastAll方法返回的碰撞结果数组没有排序(版本2.6) 附件说明: 该数据为射线起点到碰撞点的距离,其中第一排是未排序的,第二排数据是我排序处理过。 附件 : --> 2020-09-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

6. 原生工程中rayCastAll射线失效 [ 94%]

原生工程中rayCastAll射线失效 在使用app构建原生AS包时遇到射线失效的情况(也可能是偏移了),使用的构建工具版本为2.7.0和2.11。  这里的代码在本地调试和打包web的时候是正确生效的。 附件 : --> 2021-09-17 添加评论 免费帖 --> ...

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

7. this.scene.physicsSimulation.rayCastAll 报错 [ 93%]

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

8. RayCastAll射线检测同一MeshColliderShape返回两个结果 [ 92%]

RayCastAll射线检测同一MeshColliderShape返回两个结果 如下图,白色方体是BoxColliderShape,检测正常,返回一个结果值 黄色方体是MeshColliderShape,检测会返回两个结果值,观察是方体的前后两个面都被检测到了,而且法线方向居然是一...

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

9. laya.d3.physicscannon.CannonPhysicsSimulation_API3.0 [ 79%]

... gravity solverIterations Methods clearForces dispatchCollideEvent rayCast rayCastAll raycastAllFromTo raycastFromTo createConstraint Properties fixedTimeStep fixedTimeStep: number = 1.0 / 60.0 Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:111 物理模拟器帧的间隔时间:通过...

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

10. laya.d3.physics.PhysicsSimulation_API3.0 [ 70%]

...Forces createRaycastVehicle dispatchCollideEvent enableDebugDrawer rayCast rayCastAll raycastAllFromTo raycastFromTo removeConstraint removeVehicle setHitsRayResultCallbackFlag shapeCast shapeCastAll sphereQuery createConstraint Properties dt dt: number = 1 / 60 Defined in laya/d3/physics/PhysicsSim...

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