I’m trying to make a physics object in the shape of a star. For some reason it doesn’t display correctly. I’ve checked the points a few times and they seem to be correct. If I remove the inner points it makes a pentagon.
[lua]local star = display.newImage(“star_1.png”)
star.x = 160
star.y = 60
– 0, -22, 8, -8, 22, -6, 12, 6, 15, 21, 0, 13, -14, 22, -11, 6, -22, -6, -7, -8
physics.addBody( star, {density=3.0,
friction=0.8,
bounce=0.3,
shape={0, -22,
8, -8,
22, -6,
12, 6,
15, 22,
0, 13,
-14, 22,
-11, 6,
-22, -6,
-7, -8} } )[/lua] [import]uid: 98652 topic_id: 19748 reply_id: 319748[/import]