[LayaAir 2.0]物理使用scrollrect错位问题
我在论坛里搜过类似的问题, 但是我这样设置了worldroot还是会错位, 哪里出问题了呢, 求解答
Laya.Physics.I.worldRoot = this.road;
this.road.scrollRect = new Laya.Rectangle(0, 100, this.width, this.height);
Laya.Physics.I.worldRoot = this.road;
this.road.scrollRect = new Laya.Rectangle(0, 100, this.width, this.height);
3 个回复
layabox
赞同来自:
解压laya.physics.rar把引擎库替换一下。然后,
每次更新worldroot时,需要手动调用 updatePhysicsByWorldRoot();
如下图所示:
(双击打开可查看大图)
好名字可以让你的朋友更容易记住你。
赞同来自: layabox
2, 帧动画每帧改变interval, 动画会卡在某一帧一段时间
小小泽
赞同来自: