I have a little problem.. I'm stuck in the error "Attempt to use a destroyed fixture" and I can't find a solution..
How do I check if a fixture is destroyed or not? I tried with "a==nil" (a is the fixture) but is not nil,is just destroyed..
Also every method I try to apply to the fixture like a:getBody() return the error..
I want to do an if statement like
Code: Select all
if *the fixture is destroyed* then
--do nothing
else
--do the work with the fixture
end