hi.
i had found a few month’s ago.
there was a bug at shape in addBody
i have a incorrect shape everytimes.
please~, help me~~
local physics = require(“physics”)
physics.setDrawMode(“hybrid”)
physics.start()
local Group = display.newGroup()
local x1 = 0;local y1 = 0
local x2 = 320;local y2 = 0
local x3 = 320;local y3 = 200
local x4 = 265;local y4 = 201
local x5 = 207;local y5 = 207
local x6 = 180;local y6 = 235
local x7 = 160;local y7 = 240
local x8 = 140;local y8 = 235
local x9 = 107;local y9 = 207
local x10 = 55;local y10 = 201
local x11 = 0;local y11 = 200
local _shapeAll = {x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7,x8,y8,x9,y9,x10,y10,x11,y11}
physics.addBody(Group, {density = 1, friction = 0.0, bounce = 0.0, shape=_shapeAll })
Group.gravityScale = 0.0
Group.angularDamping = 100
Group.linearDamping = 0.5