I am sure the problem is already solved somewhere and well known but I can't find a working solution.
I have a sphere with planes around it and I need those planes to be tangent to the sphere depending on its position.
I have made a playground with my basic setup: https://www.babylonjs-playground.com/#VDG184#2
You will see 2 solutions I tried but which are not working, one using path3D and one with basic math.
Thank you, Pichou