Monday, October 10, 2022

Today's prompt is 'galaxy'.


I want to start with an initial triangle in my world polygon and use the trig functions to create the three points, which have elevation above or below the sea level. Then subdivide this triangle at points between the vertices, along sea level or midpoints, depending. Use the math.atan2 to get the angles and push out off of any corners above sea level, since I'm making landmass!, subdividing this outside angle once or twice if the angle is greater than 180 degree/pi. I should probably cheat and make sure the initial point is above sea level, otherwise we're going no and where...

No comments:

Post a Comment