Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Box2D, destroy object



  • I'm trying to destroy dynamically created Body object in QML (obstacle = obstacleComponent.createObject(world) ).
    When I call obstacle.destroy(), the app crashes with "ASSERT: "mBody" in file ..\src\qml-box2d\box2dbody.cpp, line 186".

    Otherwise, obstacle object is successfully created, and also displayed in the world. The problem is just in destroy().

    Any idea why?


Log in to reply