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

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

391. laya的hitTestPoint没有第三个参数吗,只检测到矩形碰撞?惨了我as3人物的精确碰撞都靠第三个参数 怎么改装成h5? [ 47%]

...中的点(除非显示对象容器是舞台)。注意,不要在大量物体中使用精确碰撞像素检测,这回带来巨大的性能开销 参数 x:number — 要测试的此对象的 x 坐标。 y:number — 要测试的此对象的 y 坐标。 shapeFlag:boolean — 是检查对象 (tru...

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

392. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 45%]

...命周期方法 2.1 组件的生命周期方法 生命周期方法是指在物体的创建、销毁、激活、禁用等过程中,会自动调用的方法。当使用自定义的组件脚本时,可以实现如下生命周期方法,方便快速开发业务逻辑。可以在每个方法中打印...

来源: Laya3.0_文档 发布时间: 20240528

393. laya.d3.physics.constraints.ConstraintComponent_API3.0 [ 41%]

...ed in laya/d3/physics/constraints/ConstraintComponent.ts:81 连接的两个物体是否进行碰撞检测 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEdit...

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

394. laya.d3.physics.constraints.FixedConstraint_API3.0 [ 40%]

...ed in laya/d3/physics/constraints/ConstraintComponent.ts:81 连接的两个物体是否进行碰撞检测 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEdit...

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

395. 有关Laya3D碰撞检测疑问 [ 38%]

...ToRay(this.point, this.ray);  //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(this.ray, this._outHitAllInfo, 30, 0); }  private loadUI(): void {  this.label = new Laya.Label(); this.label.text = "点击选取的几何体"; this.label.pos(Laya.Browser.clientWidth / 2.5, ...

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

396. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 31%]

...ed in laya/d3/physics/constraints/ConstraintComponent.ts:81 连接的两个物体是否进行碰撞检测 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEdit...

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