Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


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

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


    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.


    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.


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

RSS feed for this thread

You must be logged in to reply to this topic.