Cannot get radius to work on static types

I am trying to get a ball to collide with a peg, both of which should be circles. The ball is “dynamic” and the peg is static. Th ball does act like a circl but the peg still responds as a rectangle. Below is the code for the definition of the peg:

[lua]local pegs = display.newImage(“greenPeg.png”, 100, 320)
physics.addBody(pegs, “static”, {density = 2, radius = 15})[/lua]
[import]uid: 7664 topic_id: 1631 reply_id: 301631[/import]

Solved - I had to separate the body type in to a second assignment

[lua]physics.addBody(pegs, {density = 2, radius = 15})
pegs.bodyType = “static”[/lua] [import]uid: 7664 topic_id: 1631 reply_id: 4746[/import]

That seems odd. Is it flagged as a bug, or a doc error? The online docs say the “new” version is:

physics.addBody( triangle, “static”, { density=1.6, friction=0.5, bounce=0.2, shape=triangleShape } ) [import]uid: 3953 topic_id: 1631 reply_id: 5060[/import]

Ya, my first time using Corona I thought i’d mess around with some balls colliding. As soon as I tried to make a ball it would be a square, properly because I was following the docs. I didn’t realize you had to set the bodyType in a second assignment statement. I hate it when the docs are weak. It wastes sooo much time trying to do simple stuff, like make a circle not be a square :frowning:
[import]uid: 8741 topic_id: 1631 reply_id: 6897[/import]

Actually, this was a known bug, but it’s fixed in the upcoming release, so the separate bodyType assignment shouldn’t be required in the future.

(I’ll go back and note this in the other related threads.) [import]uid: 3007 topic_id: 1631 reply_id: 6935[/import]

Is there a document that lists all known bugs (and their work arounds?) That would be really handy. [import]uid: 8741 topic_id: 1631 reply_id: 6955[/import]

try here:

http://developer.anscamobile.com/project/issues/game-edition

So you got fed up of GS huh?
[import]uid: 8353 topic_id: 1631 reply_id: 6961[/import]

Not fed up, just looking at alternatives.

I don’t see any way in Corona, for example, to lay out my level visually. [import]uid: 8741 topic_id: 1631 reply_id: 6965[/import]

You could always request it in the feature request forum. [import]uid: 8353 topic_id: 1631 reply_id: 6970[/import]