How to make a curved platform for a 2d racing game?

In the Physics2 settings, change the object’s shape type to “Edge”:

image

and then modify the object’s physics collision shape.