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

The best way i use is physics editor! It takes so little time and is great! You can use curves and much more!

Do you have a link to some more info?

http://www.physicseditor.de/

when you download the free version you get some examples how to use the software!

Looks like exactly what I'm after. Thanks for the quick reply and great info...

No Problem!! Glad for helping!

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,

?:)

views:1853 update:2011/10/4 8:06:35
corona forums © 2003-2011