A question about colliders.

In most cellphone games, I found that they are all using “Box_Collider” to make each model’s colliders. And I searched a lot infos and asked a lot of people, they are all telling me “use Cube to make colliders”.But what if I have a Irregular polygon like a star shape? I have no idea how to make its collider by using some cubes.

I see that Unity has a “Mesh Collider” component, but I don’t know how much memory its gonna cost. because I really need to reduce the memory cost as possible as I can so that my game can run on an iPhone. so I am here asking for help…

thank you very much!

A mesh collider has a higher performance cost. The alternative is to have several box, sphere or capsule colliders as child objects. There are many variables in determining which is best, so you will have to test each option for yourself.