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

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

151. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...s.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): void { //如果被碰到,则移除子弹 this.owner.removeSelf(); } onUpdate(): void { //如果子弹超出屏幕,则移除子弹 if ((this.owner as Laya.Sprite).y <...

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

152. Laya3D init error,must support webGL! [ 52%]

...。。才能进去 Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,120元有偿悬赏解答 希望Laya3D的入门提供一个unity的项目例子 IDE不能运行调试提示:Chrome error: Error:... 安卓微信小游戏中webgl渲染文字过慢 Laya3D init error, m...

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

153. [LayaAir3]【LayaAir 3.1.0-beta.2】3D物理中Rigidbody3D组件触发器勾选无效BUG [ 51%]

...body3D中 is Trigger勾选框无效了 无论是否勾选,都不能触发onTriggerEnter事件,但不勾选情况下onCollisionEnter事件有效 将编辑器降级回3.0.9,is Trigger勾选框又生效了 附件 : --> 2023-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

154. laya3d物体碰撞与触发检测的问题 [ 51%]

...t default class BoxMove extends Laya.Script {  constructor() { super(); } onTriggerEnter() { console.log("111"); } onTriggerStay() { console.log("111"); } onTriggerExit() { console.log("111"); } onEnable() { }  onDisable() { } } //这是两个类,直接可以就不会发生触发效果,什么...

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

155. laya.physics.js:430 Cannot read property 'GetType' of null [ 51%]

...-09-12 18:52 2.1.1版本,子弹和怪物两个对象脚本上都有检测onTriggerEnter,子弹脚本上是removeSelf,怪物是减少血量,运行着不一定啥时候就报这个错误,比较频繁

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

156. box2d 弹性异常 [ 51%]

...角度并不是特别小. a11a • 2020-03-09 14:18 你在FlyItem里添加 onTriggerEnter(other: any, self: any, contact: any): void { let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) as Laya.RigidBody; let velocity = rig.linearVelocity; console.log(velocity) } 你把初始弹射改...

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

157. 脚本的事件(ActionScript-3D基础(AS3)-LayaAir3D的脚本使用) [ 51%]

... onStart():void {} /** * 开始触发时执行 */ public override function onTriggerEnter(other:PhysicsComponent):void {} /** * 持续触发时执行 */ public override function onTriggerStay(other:PhysicsComponent):void {} /** * 结束触发时执行 */ public override function onTriggerExit(other:...

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

158. LAYA3D,如何关闭ALPHA预乘 premultiply alpha [ 51%]

...式就显示这个 Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,120元有偿悬赏解答 问题状态 最新活动: 2018-04-14 12:17 浏览: 2213 关注: 1 人

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

159. sprite3d 调用destroy报错 [ 50%]

... • 2018-10-30 11:10 而且奇怪的是 如果这个sprite3D没触发过OnTriggerEnter等碰撞事件的话 就能顺利destroy 春仔 • 2019-10-08 19:21 @建章:我也遇到同样的问题,请问一下,你解决了吗?

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

160. 2.13 2d物理系统 physics 碰撞体信息的owner为null [ 50%]

... 2022-07-18 15:15 浏览: 4073 关注: 2 人 π大星 • 2022-07-18 10:07 onTriggerEnter 第一次打印的时候 就已经是null了 如果是 a点碰撞b点 双方的碰撞信息 都没有问题的 现在的问题是 飞行道具生成的 碰撞体 从 a点移动到b点 飞行道具 对 a点和b...

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