大约有 147 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0032 秒)
...: 与内容相关的链接 提交 4 个回复 南 赞同来自: Smile~ // RayCast方法: // world.RayCast(callback:Function,point1:b2Vec2,point2:b2Vec2); // * callback 回调函数 // * point1 射线的起点 // * point2 射线的终点 // 回调函数: // function(fixture:b2Fixture,point:b2Vec2...
来源: Laya_社区 发布时间: 20190519
这个Bug不用感谢我 Laya.Physics.rayCast(this.ray,this.outHitInfo,2); TS版本的rayCast没有任何用处。已详细测试。as版本正常,ts版本不行。 不提供Demo。改或不改,Bug就在那里,不会消失。 2018-09-27 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20180927
...版本的引擎,到底谁在搞笑! 你所调用方法:Laya.Physics.rayCast(this.ray, this._outHitInfo, 30, 13); 你所使用引擎对应的接口: Laya.Physics.rayCast=function(ray,sprite3D,outHitInfo) 其要 声明一点,我们官方交流 社区是没有义务给你们的项目调试...
来源: Laya_社区 发布时间: 20170324
...r = Laya.Layer.getLayerByNumber(10); 然后这样去检测他 Laya.Physics.rayCast(ray, _outHitInfo, 30, 10); 但是,实际上这样不能检测到 Laya.Physics.rayCast(ray, _outHitInfo, 30, 0); 只有这样才能检测到 2018-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180409
...] 重力。PhysicsPublic Methods MethodDefined By Physics()Physics rayCast(ray:Ray, outHitInfo:RaycastHit, distance:Number, layer:int = 0):void[static] 在场景中投下可与所有碰撞器碰撞的一条光线,获取发生碰撞的第一个碰撞器。 Physics rayCastAll(ray:Ray, outHi...
来源: laya_api 发布时间: 20170929
...er.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 fevilbo 赞同来自: 在构造函数中 ...
来源: Laya_社区 发布时间: 20181220
...、angularVelocity角速度、isSleeping是否处于休眠状态等。 - 5.rayCast射线检测功能 rayCast、rayCastAll。 **在LayaAir中使用Cannon.js** - 1.创建盒型MeshSprite3D ```typescript var box = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))); ``` - 2....
来源: Laya2.0_文档 发布时间: 20210715
...、angularVelocity角速度、isSleeping是否处于休眠状态等。 - 5.rayCast射线检测功能 rayCast、rayCastAll。 **在LayaAir中使用Cannon.js** - 1.创建盒型MeshSprite3D ```typescript var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ)...
来源: Laya2.0_文档 发布时间: 20210714
...通知,此侦听事件响应一次后自动移除。 EventDispatcher raycast(ray:Ray, hitInfo:RaycastHit, maxDistance:Number):BooleanColliderEvents Hide Inherited Events Show Inherited Events Event Summary Defined By enabledchanged在enable属性发生变化后调度。Component3DProperty Det...
来源: laya_api 发布时间: 20170929
...lisionDetection gravity Methods addConstraint addVehicle clearForces createRaycastVehicle dispatchCollideEvent enableDebugDrawer rayCast rayCastAll raycastAllFromTo raycastFromTo removeConstraint removeVehicle setHitsRayResultCallbackFlag shapeCast shapeCastAll sphereQuery createConstraint Propertie...
来源: Laya3.0_api 发布时间: 20231115