Info
This post was imported from a personal note. It may contain inside jokes, streams of consciousness, errors, and other nonsense.
I got an inch worm working when there are only one or two segments in between the rotating segments.
There’s the detaching segment which is rotating away from the surface and the attaching segment which is rotating toward the surface.
If there is only one segment between those it just needs to point from one segment to the next segment. In this case, there’s no way for the single segment to fit itself to the distance between the two segments’ points.
I’ve added a note to try to avoid this situation. Just need to detach an extra segment before attaching segments. So once the tip makes contact I can pause the attaching until there are enough detached segments. That seems like it’d work.
Also there are some frames at the segment transitions where it’s giving bad output. I only captured one but it happens every time the segment index changes.
Not sure what that is yet.