我进行了广泛的搜索,但未能找到任何有关销毁焊接接头的指南或帖子。如何破坏 bodyA 和 bodyB 之间的焊接接头?我通过以下方式创建了焊接接头。
weldJointDef.Initialize(bodyA, bodyB, bodyA->GetWorldCenter());
weldJointDef.collideConnected = false;
weldJoint = (b2WeldJoint*) world->CreateJoint(&weldJointDef);
最佳答案
world->DestroyJoint( weldJoint );
关于cocos2d-iphone - 如何破坏焊缝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12116926/