Physics Body Shapes - How To

I want to be able to define ‘non-standard’ physics body shapes for collisions but I’m not sure of the correct method of creating shapes like either of these:

http://insertcode.co.uk/wp-content/uploads/2011/09/PhysicsBodies.jpg

How exactly can I do this with Corona? Can I define the shape properties somehow or would I have to use multiple rectangles and use physics joints? For example, for the X (cross) shape, would I join two rectangles around the centre?

Thanks [import]uid: 74503 topic_id: 14972 reply_id: 314972[/import]

The best way i use is physics editor! It takes so little time and is great! You can use curves and much more! [import]uid: 24708 topic_id: 14972 reply_id: 55239[/import]

Do you have a link to some more info? [import]uid: 74503 topic_id: 14972 reply_id: 55240[/import]

http://www.physicseditor.de/
when you download the free version you get some examples how to use the software! [import]uid: 24708 topic_id: 14972 reply_id: 55241[/import]

Looks like exactly what I’m after. Thanks for the quick reply and great info… [import]uid: 74503 topic_id: 14972 reply_id: 55242[/import]

No Problem!! Glad for helping! [import]uid: 24708 topic_id: 14972 reply_id: 55243[/import]

well, the path that you are on is a good start, but if your physics body is a single entity and not two, then you might want to create a shape made from vertices defining that image.

you can use tools like Physics Editor or Sprite Helper and/or Level Helper

These are some tools that can help you create what you are after.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 14972 reply_id: 55248[/import]