band.Length() different from structure.GetDistance()
| Case number: | 671071-991361 |
| Topic: | Game: Other |
| Opened by: | Tony Origami |
| Status: | Resolved |
| Assigned: | Anonymous |
| Priority: | 3 |
| Type: | Bug |
| Opened on: | Wednesday, December 21, 2011 - 17:51 |
| Last modified: | Thursday, January 5, 2012 - 06:16 |
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
Thu, 01/05/2012 - 06:16
#2
| Topic: General » Game: Other |
| Status: Open » Resolved |
Fixed. Should be available on the next release.

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