Make images ignore transparent bits in png files?

How do I make so that a jpg with physics ignore the transparent bits of the groundimage which is static? [import]uid: 24111 topic_id: 5413 reply_id: 305413[/import]

You need to use the shape property when creating your physics body:

http://developer.anscamobile.com/content/game-edition-physics-bodies#Polygon_bodies

That way you can define the shape of the physics body to be something other than the bounds of the image. [import]uid: 1294 topic_id: 5413 reply_id: 18137[/import]

Doesn’t it exist a command for just the object to ignore the transparent parts? [import]uid: 24111 topic_id: 5413 reply_id: 18140[/import]

Nope, not at this time, anyway. It may be possible to add in something like that (I think it exists in the AS3 implementation of Box2d), but I don’t know if it’s on the roadmap for Corona. [import]uid: 1294 topic_id: 5413 reply_id: 18142[/import]

Found this: http://www.youtube.com/watch?v=oigdrgh286E [import]uid: 24111 topic_id: 5413 reply_id: 18232[/import]