Re: Update physics World in another Thread
Posted: Thu Jan 12, 2017 10:21 pm
I found the main critical problem.
Functions in http://www.love2d.org/wiki/World:setCallbacks works only in one thread and they cant pass to another.
Same for http://www.love2d.org/wiki/Fixture:setUserData and http://www.love2d.org/wiki/Body:setUserData if userData is table or function (pointer).
Functions in http://www.love2d.org/wiki/World:setCallbacks works only in one thread and they cant pass to another.
Same for http://www.love2d.org/wiki/Fixture:setUserData and http://www.love2d.org/wiki/Body:setUserData if userData is table or function (pointer).