We are about to switch to a new forum software. Until then we have removed the registration on this forum.
As you can see in this picture the arcs rotation, or start and stop values, change using the code as follows:
arcAngle1 = Math.sin(freq*i) * arcAngle1Span + arcAngle1Start; arcAngle2 = Math.sin(freq*i) * arcAngle2Span + arcAngle2Start;`
arcAngle1Start = -HALF_PI; arcAngle1Span = HALF_PI; arcAngle2Start = HALF_PI; arcAngle2Span= HALF_PI;
I am trying to figure out the values needed for it to sync so that the middle of the arc is always pointing in the so called direction of travel. It is possible that something else is wrong entirely and I'm thinking using the wrong method so here is the entire code for that reason: https://pastebin.com/nHFmHtYz
Thank you all in advance for any help.