我进行了广泛的搜索,但找不到任何关于破坏焊接接头的指南或帖子。如何破坏 bodyA 和 bodyB 之间的焊缝?我通过以下方式创建了我的weldJoint。
weldJointDef.Initialize(bodyA, bodyB, bodyA->GetWorldCenter());
weldJointDef.collideConnected = false;
weldJoint = (b2WeldJoint*) world->CreateJoint(&weldJointDef);