Change backbone position by angle
|Opened on:||Tuesday, September 7, 2010 - 17:37|
|Last modified:||Tuesday, June 5, 2012 - 09:51|
If you look at the segments, you will notice that they always have the same spatial distance to those with next or previous index.
According to each segment, you can give two spatial angles (x- and y-rotation) to get the spatial position of the next segment.
On blank (or denovo) puzzles (like in some contests), the angles of each segment are (0,0)
I thought it would be cool to experiment by changing backbone positions by giving two angles,
maybe with a function like set_segment_angle(index,angle1,angle2).
Doing it this way, you could quickly make a denovo puzzle by:
for index=2,get_segment_count() do
You could also use this to flatten out areas.