I’m trying to create what I thought would be a simple box2d world, where some objects begin static, others fall down and bounce off the static ones as they fall, then eventually the static ones fall off the bottom of the screen too.
This is my first real attempt to use box2d for anything, i’ve done a bit of reading and playing around and I think I can see a few ways of doing it, but none of them seem ideal.
Is it better to keep the world’s gravity off, and use updatebody to make half the objects fall to start with, either with position or velocity? Then change the position or velocity of the (initially) static objects later to make them fall too?
Or is it better to have the world’s gravity turned on but set the (initially) static bodies mass to 0 so they are unaffected by it, then later use updatebody’s position pin to make them fall off the bottom of the screen?
any hints and tips gratefully received, thank you!