I am trying to build a platform game. In my game, random platforms appear and move from right part of the screen to the left part .
b2Vec2 impulse = b2Vec2(-5, 0);
But when I see my stats, the number of call / countRef (First line of the Stats) is always increasing as the new platforms move from right to the left. I want to know how can I remove the existing platforms once they have moved passed the left screen (off screen). All my platforms are b2_kinematic bodies (Box2D).