I noticed that every now and again in a collision listener the event.contact field is nil. The docs don’t mention anything about this, so I was wondering what cases cause this and whether it’s an indicator that there’s a bug in my code?
For reference my code is
[lua]
function smuggler:preCollision(event)
event.contact.isEnabled=smuggler.alpha>0
end
smuggler:addEventListener(“preCollision”)
[/lua]
Where smuggler is a physics object.