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

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

11. physicsSimulation.raycastAllFromTo 对 box collier 不生效(重复提问不知道怎么删除) [ 90%]

physicsSimulation.raycastAllFromTo 对 box collier 不生效(重复提问不知道怎么删除) 使用 Scene3D  physicsSimulation.raycastAllFromTo 对物体进行射线检测,给物体上挂了mesh collider可以正常检测到碰撞,但是换了其他box collider,sphere collider都检测...

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

12. 我竟然被射线检测这个小功能给难了一天了 [ 84%]

...ya.Vector3._ZERO) hitInfo:Laya.HitResult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log(...

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

13. this.scene.physicsSimulation.rayCastAll 报错 [ 82%]

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

14. 新版本射线检测不能根据layer检测[ 80%]

...ayer层 目前是只能给所有碰撞器分组来检测吗? _this.scene.physicsSimulation.rayCast(_this.ray, _this._outHitResult,_this._distance,_this._collisionGroup); 2019-04-19 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

15. 关于射线检测,返回所有碰撞结果的问题 [ 78%]

关于射线检测,返回所有碰撞结果的问题 this.scene.physicsSimulation.raycastAllFromTo(new Laya.Vector3(pos.x, -1, pos.z + 1), new Laya.Vector3(pos.x, 0 + 99, pos.z + 1), vAlign);   这里的 vAlign,数组内的碰撞结果 顺序是随机的还是和射线方向有关,我使用的...

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

16. 物理形状扫描检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 74%]

...his.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆放的模型是使用代码创建的,只是为了方便观察和理解形...

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

17. 物理形状扫描检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 74%]

...his.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆放的模型是使用代码创建的,只是为了方便观察和理解形...

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

18. 物理形状扫描检测(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 74%]

...测 if (castAll) { //进行形状检测,检测所有碰撞的物体 scene.physicsSimulation.shapeCastAll(sphereCollider, from, to, hitResults); for (i = 0, n = hitResults.length; i 该示例中射线摆放的半透明模型是使用代码创建的,只是为了方便观察和理解形状扫描检...

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

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

...is._ray);         //拿到射线碰撞的物体         this.scene.physicsSimulation.rayCast(this._ray,this.hitResult);         //如果碰撞到物体         console.log("1111111111",this.hitResult);          // if (this.outs.length != 0)         // {          //  co...

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

20. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 73%]

...ewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this.ray,this.outHitResult); //如果碰撞到物体 if (this.outHitResult.succeeded) { //删除碰撞到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; console.lo...

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