[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;
let a=this.owner.getComponent(Laya.DistanceJoint) as Laya.DistanceJoint;
a.selfBody=this.rig;
a.otherBody=r;
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
小高
赞同来自:
首次设置生效就是字面意思,第一次设置生效。