It looks like you're new here. If you want to get involved, click one of these buttons!
misterhup
Member
".\GiderosCodingEasy.lua:503: World is locked.
stack traceback:
.\Box2dEasy.lua:497: in function 'update'
main.lua:657: in function <main.lua:656>" |
Comments
Likes: antix
As others said, you can't modify/update the world from within a collision callback, because technically the callback is already called from a world update. You have to defer your world changes until next frame.
Can your share the code that you use so that we can help you further ?
So what are you trying to achieve with static objects?
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
They are static, Box2D speaking, but they move accordingly to some custom physics I made changing their position/rotation each frame. And when I mean colliding I basically mean touching (because I use Box2D just for its precision to detect collision between rotated objects)
I figured the problem out though. Thank you for all the help and support!
Only dynamic collide with all types (dynamic, static, kinetic)
Likes: antix, totebo
Likes: ar2rsawseen