Why does a body appear as square when I have specified a radius?

With this code:

physics.addBody( rock, "static", { density=2, friction=0.5, bounce=0.4, radius=34 } )  

the rock appears as a square in debug drawing mode.

However, with this code:

physics.addBody( rock, { density=2, friction=0.5, bounce=0.4, radius=34 } )  

the rock is a circle (as expected).

Any suggestions or explanations?
[import]uid: 8353 topic_id: 2111 reply_id: 302111[/import]

It seems to be an already known bug if I’m not mistaken.
Just use the second one, then rock.bodyType = “static”, for me it works :slight_smile: [import]uid: 8486 topic_id: 2111 reply_id: 6303[/import]

Yep that worked, cheers. [import]uid: 8353 topic_id: 2111 reply_id: 6304[/import]

Yes, is a bug. Is logged it as internal bug #906.

Marco
[import]uid: 7518 topic_id: 2111 reply_id: 6311[/import]

Right, that’s a known bug, but should be fixed in the next drop.

One of the reasons we prioritized debug-draw ahead of some other things is that it makes bugs like this MUCH easier to find! [import]uid: 3007 topic_id: 2111 reply_id: 6391[/import]