Code: Select all
table = {}
table.number
table.body
table.shape
table.fixture
Code: Select all
table.fixture:setUserData(table)
I'm also trying not to dwell on the paradoxical implication that it will create a copy of the fixture in the data for the fixture.
EDIT: I just realized I can do...
Code: Select all
local info = {type = "bullet", index = i}
table.fixture:setUserData(info)