Download

Trying to make sprite items push others out of the way just enough when dropped on the ground

Sorry, tried to make the title as descriptive, but this is basically what I’m doing:

I have a 2.5d sidescroller (player, enemies, items are all sprites and the world is 3d). I’ve made an inventory system so the player can drop his items onto the ground. These items are currently using physics; what I want is to ensure that items always land on the ground, never stacking on one another. Ideally I’d like it if an item landed on another, one of them would be pushed forward ot backward enough to ensure they both sit on the ground. I tried setting the items to overlap other items, but then it become shard to pick items up if there’s a massive pile.

Anyone have any suggestions on how to do this?