I have made a verlet integration physics sandbox, and I want it to start with a cloth. It stores points and constraints in separate lists, and the list of constraints references the items in the list of points.
points = [<point at 0,0>, <point at 0,1>, <point at 1,0>, <point at 1,1>]
constraints = [<from points[0] to points[1]>, <from points[1] to points[2]>, ...]
Using a width of 20, a height of 10, and a cell size of 20, what would be the best way to iteratively create the points and constraints that I need in their respective lists so that a cloth is made?
This is what I want it to look like, with 200 nodes and however many constraints there are.