band.Length() different from structure.GetDistance()

Started by Tony Origami

Tony Origami Lv 1

The band length function differs considerably from the segment distances whereas it should be identical. The following code demonstrates:

for x = 1, 10 do
band.AddBetweenSegments(x,x+10)
end

for x = 1, band.GetCount() do
band.SetGoalLength(x,band.GetLength(x))
print("band ",x,band.GetLength(x)," ",band.GetGoalLength(x)," ",structure.GetDistance(x,x+10))
end

Tony Origami Lv 1

as opposed to:

for x = 1, 10 do
band.AddBetweenSegments(x,x+10)
end

for x = 1, band.GetCount() do
band.SetGoalLength(x,structure.GetDistance(x,x+10))
print("band ",x,band.GetLength(x)," ",band.GetGoalLength(x)," ",structure.GetDistance(x,x+10))
end