physics in a sphere or other bounding shapes?

Christopher Overstreet's icon

I can't seem to figure this out, but I haven't worked with physics library that much. How would I put balls inside of a bigger ball for example? so that the smaller balls roll around in the bigger ball?

Any hints?

Ben Bracken's icon

Hey Christopher,

I believe there is sort of an example of this using rigid/concave bodies in the Physics patch-a-day series:

Day 7

Christopher Overstreet's icon

perfect! Thank you dynamicmesh! Any idea what the best way to keep some of the balls from falling out in that patch? I probably should have done a search before asking that...