Path 2D addArcTo goes into the wrong direction

Hi there,

I’m just beginning to experiment a bit with Babylon.js , I am tryring to make some sort of cardgame and at the moment I am trying to generate a card & cardstack with rounded corners.
I was trying to use the path2D to build the mesh with some lines and arcs but I run into the issue that the corners I am trying to make “turn the wrong direction” and make a 270 degree arc and not a 90 degree one.
Are there any solutions to fix this or some way to control the direction of the arc drawing?

https://playground.babylonjs.com/#G37IGN#3

Your path might be wrong in 2d when you try to plot it, it should be more along those lines:

https://playground.babylonjs.com/#G37IGN#4

2 Likes

Welcome @JC1994 , Maybe it helps.

2 Likes