Greetings. I want to have a table of tables but I dont know what the syntax for accessing things that are in the second liar of tables . I searched the Lua refrence manual but its probley wouldent be the kind of thing that would be in there. Here’s my code (its in a for loop).
self.itemBorderTable[i] = {vec4(pos.x - self.itemWidth/2,
pos.y + self.itemHeight/2,
pos.x - self.itemWidth/2,
pos.y - self.itemHeight/2),
vec4(pos.x + self.itemWidth/2,
pos.y + self.itemHeight/2,
pos.x + self.itemWidth/2,
pos.y - self.itemHeight/2),
vec4(pos.x - self.itemWidth/2,
pos.y + self.itemHeight/2,
pos.x + self.itemHeight/2,
pos.y + self.itemHeight/2),
vec4(pos.x - self.itemWidth/2,
pos.y - self.itemHeight/2,
pos.x + self.itemHeight/2,
pos.y - self.itemHeight/2)}
Can someone please give me an example of how I’d acces the differnt vecs?