Hi guys. I'm attempting to measure the distances between chain links made up of a single sprite.
I am using R0j0s verlet motion as a base cp3 file.
I made a loop in the c3p as visible here to add up distances.
Theoretically the displayed summation of distances should always be no less than the assigned distance in between times sprite count which in this case is 8*31 but in execution, in my loop at least, I seem to be ending up with values less than that moving my main character sprite around. I seem to only be measuring the distances between the first the last link.
file: del
I need help pointing out what I did wrong and how I may fix this loop. Thanks.
EDIT: Also is there a way I may store the summation variable so I can create a set of events like :
if summation > theoretical max = do this..
with the nature of the SumDistance variable being in a constant state of flux inside the loop how would that work?