I'm currently working on a 2D platforming game with an infinite map.
I did my research and I discovered that I can use chunks. Based on my understanding chunks is about spawning terrain at the right time and then removing them when not needed.
My idea was to pool a body then add it to an array list so that I can use a static body and remove it any time without any problems.
But then I realized that Pooling is not applicable to bodies.
How can I spawn chunks, without creating a new body every single time and then remove it when not needed?