Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › Box2D bodies are not removed with removeAllEntities

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14234

    Derick

    I am using the level editor to add blocks to a platform game. However, when clearing (entityManager.removeAllEntities() ) the Box2D bodies and colliders still remain (visible in debug). I can post all of my code, just wondering if maybe I am making a simple mistake. I am using dynamic creation and entityBaseDraggable for the platforms. They show up correctly with image and colliders but when “removed” only the sprite is removed and not Box2D body.

    #14404

    Günther
    Felgo Team

    Hi Derick!

    I had a short look and can confirm the behavior, you are not making any mistake. Thanks for reaching out, we will have a closer look at that. You can ignore the “ghost” bodies for the moment as they don’t disturb the game as far as I’ve seen.

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded