EDIT: As has been pointed out below, the issue isn’t that you can’t assign more than one circle body to an object (which you can), but that you can’t set the position of each circle body independently. They all end up centered on the same x,y position. Glad this is finally getting some attention.
I’d like to be able to define more than one circular body shape for an object in order to build up a complex physics body made up entirely of circles.
Currently Corona only allows one circular body shape for an object and it is always centered on the display object’s bounding box center. I’d like to be able to define a circle body by radius AND x,y coordinates local to the object and assign multiple circles to the object the same way I can already assign multiple polygonal bodies to it.
Why? I’m having issues where jointed physics objects collide with sharp edges on other static objects and get hung up on the corners, pulling the joints apart. The only work around seems to be to make sure there are no sharp edges by making ALL physics bodies out of circles. So, for a brick, I’d want to use 4 circles, one at each corner of the brick.
Custom polygons don’t work well for this since the max # points is 8 and the shape is more like a stop sign than a circle. There are still enough sharp corners on an 8 sided circle that other objects get hung up on them. [import]uid: 9422 topic_id: 8804 reply_id: 308804[/import]