大约有 147 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0033 秒)
Cannot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let conf...
来源: Laya_社区 发布时间: 20200903
RayCastAll检测bug 屏幕点击发射线检测碰撞,使用rayCast是没有问题的,使用rayCastAll只有第一次返回的点是正确的,之后返回的点就不会发生变化了,怀疑这里有bug,因为使用的是ts,对应的源码查看不了。 翻了一下as3的代码,发...
来源: Laya_社区 发布时间: 20181221
打包QQ小游戏,rayCast发出的射线检测到的物体与点击的不一致,在浏览器和微信小游戏没有这种情况发生 附件 : --> 2020-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...
来源: Laya_社区 发布时间: 20200218
2.0如何射线检测 现在2.0的射线检测函数rayCast之前是Laya.Physics.rayCast现在已经是Laya.PhysicsSimulation的成员函数,已经不是静态函数了,但是 new Laya.PhysicsSimulation(new Laya.PhysicsSettings());会报错,请问如何射线检测? 附件 : --> 2019-05-05 ...
来源: Laya_社区 发布时间: 20190505
...er Index Constructors constructor Properties _UI3Dlist Methods add destory rayCast remove update Constructors constructor new UI3DManager(): UI3DManager Defined in laya/d3/core/UI3D/UI3DManager.ts:7 Returns UI3DManager Properties _UI3Dlist _UI3Dlist: SingletonList<UI3D> = new SingletonList<...
来源: Laya3.0_api 发布时间: 20231115
....PhysicsSimulation)。射线检测使用的接口有4个,分为两类。`raycastFromTo`,`raycastAllFromTo`一类,`rayCast`,`rayCastAll`一类。我们将前面2个成为A类,后面为B类,我们来看下这两种方法的api: (图1) (图2) A类使用的是...
来源: Laya2.0_文档 发布时间: 20210715
....PhysicsSimulation)。射线检测使用的接口有4个,分为两类。`raycastFromTo`,`raycastAllFromTo`一类,`rayCast`,`rayCastAll`一类。我们将前面2个成为A类,后面为B类,我们来看下这两种方法的api: (图1) (图2) A类使用的是...
来源: Laya2.0_文档 发布时间: 20210715
....PhysicsSimulation)。射线检测使用的接口有4个,分为两类。`raycastFromTo`,`raycastAllFromTo`一类,`rayCast`,`rayCastAll`一类。我们将前面2个成为A类,后面为B类,我们来看下这两种方法的api: (图1) (图2) A类使用的是...
来源: Laya2.0_文档 发布时间: 20210715
...ccessors 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
...撞器,其他层内碰撞器忽略 */ Physics.rayCast(ray:Ray, outHitInfo:RaycastHit, distance:Number = Number.MAX_VALUE, layer:int = 0) /** * 在场景中投下可与所有碰撞器碰撞的一条光线,获取发生碰撞的所有碰撞器...
来源: Laya_社区 发布时间: 20170324