Im making a physics sandbox game and to optimize the performance i want to make so acumulating objects of the same type, instead of piling up one gets destroyed and the other one gets bigger (something like how Agar.io works for example)
any ideas in how can i solve it so it works?