Re: windfield/init.lua:36: attempt to call method 'collisionClear' (a nil value)
Posted: Sat May 11, 2019 10:52 pm
No one could know that you had that line, because you didn't show your code. Next time you ask for help, please provide your code, because otherwise there's no way to help.DjSapsan wrote: ↑Sat May 11, 2019 6:15 pm Well, idk how it works, but i fixed.
I had this line:That line was at few lines after original problem:Code: Select all
self.world:setCallbacks(beginContact, endContact, preSolve, postSolve)
Somehow Lua interpreted "setCallbacks" at the same time as creating new world. Last line that debugger has reach was creating world! I was not expected that line after error can cause problems O_oCode: Select all
self.world = wf.newWorld(0, 0, true)
I sounds stupid but i cant explain this...