create an circumference with physics

Hi… how can create a circumference in corona sdk that have physics…
i want to put an object inside that circumference, and that object must collide with the circumference.
if i use the display.newCircle a circle will be created…but is a circle not an circumference…

Thanks :slight_smile: [import]uid: 77944 topic_id: 18084 reply_id: 318084[/import]

You cannot create a ring shape as you describe with one simple object; however you could look into PhysicsEditor, that could greatly simplify the process.

Peach :slight_smile: [import]uid: 52491 topic_id: 18084 reply_id: 69150[/import]

Hi, thanks.

I’ve tested with PhysicsEditor. But to make a perfect ring is a little tricky …

I have also developed a function that creates lines forming a ring but then I get when I apply physics i get numerous unconnected points…

thanks [import]uid: 77944 topic_id: 18084 reply_id: 69152[/import]

You could perhaps make two half rings using PhysicsEditor, then join them together to make a circle.

Would this work for you?

Peach :slight_smile: [import]uid: 52491 topic_id: 18084 reply_id: 69261[/import]

hi:)
Thanks. I’m trying to do that…
I’m trying do do a square with two holes and add a ball inside that hole.

so i have to apply the bounding box do the square expect for the holes…

i have create two half rings with physicsEditor and trying to add that to the bouding box of the square…

Still trying…

:smiley:
THanks [import]uid: 77944 topic_id: 18084 reply_id: 69351[/import]

Let me know how you go with it - keep trying, good things take time!

Peach :slight_smile: [import]uid: 52491 topic_id: 18084 reply_id: 69534[/import]