[0]Laya.DistanceJoint 代码怎么设置otherbody,otherbody总是默认左上角,【首次设置生效】 啥意思

this.owner.addComponent(Laya.DistanceJoint);
let a=this.owner.getComponent(Laya.DistanceJoint) as Laya.DistanceJoint;         
a.selfBody=this.rig;
a.otherBody=r;
已邀请:

小高

赞同来自:

可以参考一下官方示例2D——2D物理——仿生机器人。
首次设置生效就是字面意思,第一次设置生效。

要回复问题请先

商务合作
商务合作