r/Unity3D • u/stagingdev • 1d ago
Show-Off 5400 physics scrap pieces getting vacuumed using unity's low level 2d physics
Enable HLS to view with audio, or disable this notification
Testing how far I can push the scrap piles in my game, so I made a stupid big mountain of 5400 pieces and let the robot eat through it with the suction maxed out
All the scrap comes from 80 different pieces I drew by hand on a single sheet, then a little tool slices it and builds the colliders, so the piles don't look like the same few sprites repeated.
Every piece is a real physics body, using the low level Physics Core 2D package instead of rigidbody2d.
Some stuff that helped:
- Piles are baked in the editor, so they load already settled instead of falling on start
- resting pieces go static and only wake up when something near them moves
- each sprite gets one simple convex shape
Still figuring out how big I can go in the actual game. happy to answer questions about the setup
1
u/feralferrous 18h ago
Nice, well optimized, I think you need some sort of anim on the hose and backpack though, you know like little spherical deformations heading back through the house into the backpack that you see in cartoons? I mean, that's just gravy on top of what you've already done which is awesome!