How to create a collider for an octagon?


Any Help would be appreciated:)

I would personally opt for a cylinder collider since that offers a fairly good approximation with good performance.

If you really need a precise shape, then you could use multiple box colliders. Or alternatively the most expensive kind of collider, the mesh collider.