This is a mundane answer .. but if you want rounded corners, you probably want to use more vertices at the corners and place them for a more rounded shape. You can also study this procedurally .. but if you are making a game and want to finish it, I would usually recommend that you have the final position of the vertices in the data (if you have no good reason it is dynamic).
. , , .