How to customize collision box on several mesh object?

Hello, I have a mesh object with several sub-objects within. Is there an efficient way to add collision box to it? I’m thinking of using c++ script to do that, but need some help on how to start with.