if distData[7]<0.5 then ...
not if result<0.5 then ...
.result
is 0 or 1 (1 if distance is smaller than threshold).distData
is a table, indices 1 to 6 being the distance segment, and index 7 is the distance between the entities.if distData[7]<0.5 then ...
not if result<0.5 then ...
.result
is 0 or 1 (1 if distance is smaller than threshold).distData
is a table, indices 1 to 6 being the distance segment, and index 7 is the distance between the entities.