Is it possible to define your own Colliders (e.g. Cylinder)

Unity seems to provide only a small selection of colliders and then a generic Mesh collider. However, the physics and performance characteristics for a Cylindrical Mesh Collider are obviously going to be worse than one defined using equations of line and circle.

Is there a reason why there is no cylinder collider? Is there any way of defining our own CylinderCollider class? How would we go about doing this?

Capsules are more efficient than cylinders for collision detection and can be used in most of the same cases, so I guess there’s little reason for a built-in cylinder collider as well as the capsule.

You can always define your own cylinder collider by using a convex mesh collider on the built-in cylinder primitive if you really need to.