Original Post
Ive created a table as follows: I`m trying to access each indiviual element in turn using a function call from c++. I then select the next element in the table using the next function. The problem with this is that it doesnt return the table elements in sequential order. I get a, c, b, e, d, f instead of a, b, c, d, e, f. Anyone have any suggestions on how to solve this problem? thanks
table= {}
table.a = {x = 20, y = 10, z = 42, radius = 10}
table.b = {x = 120, y = 20, z = 12, radius = 20}
table.c = {x = -20, y = 30, z = -22,radius = 4}
table.d = {x = -100,y = 20, z = 67, radius = 25}
table.e = {x = 35, y = 20, z = -72,radius = 10}
table.f = {x = -250,y = 40, z = -22,radius = 15}