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
本文标题:cocos动态创建关节链接两个物体
本文链接:https://www.haomeiwen.com/subject/uyuabqtx.html
网友评论