Well, as the title says I want to know how to triangulate a polygon as I reviewed the code from
but sadly it doesn’t work in all of the cases(anti clockwise placed nodes) and I was looking for any articles explaining the maths behind this and possible pseudocode y’all can give me to guide me.
Sadly that isn’t what I’m looking for as I want to do in live-game as a floor placement system which can be made from nodes given by the player, obviously I don’t want the player to set manually everything and I want a good enough algorithm that can fit to player needs