【问题标题】:how to destroy a weld joint如何破坏焊接接头
【发布时间】:2012-08-24 21:31:06
【问题描述】:

我进行了广泛的搜索,但找不到任何有关销毁焊接接头的指南或帖子。如何破坏 bodyA 和 bodyB 之间的焊缝?我通过以下方式创建了我的weldJoint。

    weldJointDef.Initialize(bodyA, bodyB, bodyA->GetWorldCenter());
    weldJointDef.collideConnected = false;
    weldJoint = (b2WeldJoint*) world->CreateJoint(&weldJointDef);

【问题讨论】:

    标签: cocos2d-iphone box2d box2d-iphone


    【解决方案1】:
    world->DestroyJoint( weldJoint );
    

    【讨论】:

    • 我们必须在破坏身体之前破坏关节??
    • 摧毁一个身体也会摧毁任何连接到身体上的关节。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-25
    • 2011-09-08
    • 1970-01-01
    • 2012-05-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多