Hey guys, there’s been a while since I last updated one of the games I’m working on and today I tried to test it under the latest build (1191) only to find out a line of code related to adding a physics body to a line I’ve drawn on the screen crashes Corona Simulator with a segmentation fault.
The line of code is this one:
physics.addBody(newLine, “static”, { density = 1, friction = 0.5, bounce = 0, filter = lineCollisionFilter, shape = {0, 0, dist_x, dist_y, 0, 0} } )
Important notes:
-
Using Corona’s latest release build (1137) it works perfectly.
-
If I remove the shape argument it “works” by adding automatic square bodies to my lines. I would like to add bodies shaped exactly like my lines have been drawn.
I don’t know if you guys modified something in the physics module, but I would really like a way to achieve the same effect I had before.
Thanks
. After the third time it starts to sound to them like I’ve made a terrible choice and I can’t blame them for thinking that.