cocos动态创建关节链接两个物体
2019-04-03 本文已影响0人
赤焰军少帅林殊
let joint = this.watermelonNode.addComponent(cc.WeldJoint);
joint.connectedBody=this.knifeRigid
joint.connectedAnchor.y=180
let joint = this.watermelonNode.addComponent(cc.WeldJoint);
joint.connectedBody=this.knifeRigid
joint.connectedAnchor.y=180