What's wrong with this physics body?

I created the following body using Gumbo, but it crashes the simulator when I try to run my app. Can someone tell me why?

local shape\_4 = { -64,-38.5, -64,35.5, -61,26, -56,17.5, -51.5,10.5, -44.5,4, -39,-2, -40.5,-40 }  
shape\_4.density = 1; shape\_4.friction = 0.3; shape\_4.bounce = 0.2;  
  
local shape\_5 = { -39.5,-39, -38.5,-2, -31.5,-7.5, -22,-14, -13,-18.5, -1.5,-23.5, 22.5,-32, 64.5,-39.5 }  
shape\_5.density = 1; shape\_5.friction = 0.3; shape\_5.bounce = 0.2;  
  
physics.addBody( leftarc,  
 {density=shape\_4.density, friction=shape\_4.friction, bounce=shape\_4.bounce, shape=shape\_4},  
 {density=shape\_5.density, friction=shape\_5.friction, bounce=shape\_5.bounce, shape=shape\_5}  
)  
  

Thanks,

Sean. [import]uid: 4993 topic_id: 6793 reply_id: 306793[/import]

By the way, yes, leftarc is fully defined. In fact, the display portion works just fine, it’s only when I add in the physics.addBody that the simulator crashes.

Thanks,

Sean. [import]uid: 4993 topic_id: 6793 reply_id: 23740[/import]

have you tried to keep it simple?

like this:

[lua]simpleShape = { -64,-38.5, -64,35.5, -61,26, -56,17.5, -51.5,10.5, -44.5,4, -39,-2, -40.5,-40 }

physics.addBody( leftarc, “dynamic”, { density = 1, friction = 0.3, bounce = 0.2, shape = simpleShape}) [import]uid: 12455 topic_id: 6793 reply_id: 23840[/import]