Hi! I was reading the colliders documentation and I can not seem to find how these colliders perform. When am I supposed to use edge, polygon or a compound collider made out of box colliders? What is best for mobile devices?
Think about it this way. A collider that has more sides to it, takes longer to process collision events on. The best performance comes from a circle colider. Then slightly worse performance from edge or box colliders. Then the worst performance from polygon colliders. If you have very few of these colliders in your game then you won’t notice any difference. But if you have hundreds of these colliders in your game then you WILL notice a difference.
For a circle, the collision check is “Has another object touched the radius of the center point of this object”
For a polygon, the collision check is “Has another object touched an edge from the center point of this object”