Physcis and transparent objects

Hi, I have an partially transparent image. I need that only part of the picture that is not transparent participates in the physical interactions. Like this:

81ddad9a377417f0cb47580dc2941076.png fbb671f6b647452251575d560766dec0.png

Blue line is the border of the picture itself. I may try to use some invisible polygons an let them to interact, but are there another better way to do this? I know that I can’t create smooth shapes in Corona, so I thought that I will use images.

P.S. I don’t know how, but I accidentally deleted this topic a couple minutes ago so I recreated it)))

https://docs.coronalabs.com/guide/physics/physicsBodies/index.html#polygonal-bodies

use physics.drawMode to see the result of the polygonal body :wink:

  1. Follow @yvandotet’s advice to see the body shape: https://docs.coronalabs.com/api/library/physics/setDrawMode.html

  2. Transparency has nothing to do with the physics engine.  It only knows the rectangular bounds of the image.  You have to make your own body shape using one of many options: 

Oh, yep, I missed that. Thank you, guys!

https://docs.coronalabs.com/guide/physics/physicsBodies/index.html#polygonal-bodies

use physics.drawMode to see the result of the polygonal body :wink:

  1. Follow @yvandotet’s advice to see the body shape: https://docs.coronalabs.com/api/library/physics/setDrawMode.html

  2. Transparency has nothing to do with the physics engine.  It only knows the rectangular bounds of the image.  You have to make your own body shape using one of many options: 

Oh, yep, I missed that. Thank you, guys!