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

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

31. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 66%]

...sition.y = this.touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._sce...

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

32. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 66%]

...sition.y = this.touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._sce...

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

33. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 65%]

...s = bt.btCollisionObject_getCollisionFlags(btColObj);         if (this.owner.isStatic) {             if ((flags & PhysicsComponent.COLLISIONFLAGS_KINEMATIC_OBJECT) > 0)                 flags = flags ^ PhysicsComponent.COLLISIONFLAGS_KINEMATIC_OBJECT;             flags ...

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

34. 如何对3D精灵进行鼠标检测(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 65%]

...除碰撞到的物体 text.text = "碰撞到了" + _outHitResult.collider.owner.name ; trace("碰撞到物体!!") } } ``` ![](img/2.gif)(图2)

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

35. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 65%]

...erShape=null;         this._simulation=null;         (this.owner).transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._onTransformChanged);     } 2019-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

36. UNITY导出的模型旋转不了 [ 61%]

...此方法只执行一次 */ onAwake() { //得到3D对象 this.obj = this.owner; } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为...

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

37. rigidBody.applyForce 物体不会移动 [ 60%]

...到的物体 this.text.text = "点击到了" + this._outHitResult.collider.owner.name; } } } 2020-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

38. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 59%]

...structor Properties _extra _singleton disableCollisionsBetweenLinkedBodies owner runInEditor scriptPath CONFIG_MOTION_TYPE_FREE CONFIG_MOTION_TYPE_LIMITED CONFIG_MOTION_TYPE_LOCKED Accessors XMotion YMotion ZMotion anchor angularBounce angularDamp angularLimitSpring angularXMotion angularYMotion ang...

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

39. 动画混合问题,Avatar动画混合报错. [ 58%]

... public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(...

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

40. [LayaAirIDE3]3.3 新版ui 元素处于滚动区域内,localToGlobal坐标转换异常,没有加上滚动值 [ 58%]

...用parent去做转换,把代码下面这样也行: const pos = (this.owner as Laya.Sprite).localToGlobal(new Laya.Point(0, 0)); 2025-08-15 1 1 分享 微博 QZONE 微信 Recovery 赞同来自: ??? 2025-08-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...

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