I’m developing a game,using PNG files as different objects . Now problem is, when collision occurs, those objects are not that close and its obvious because they have transparent background. So, am I missing something ? can anyone give me some suggestions?
Yes. If your PNG files have transparent edges, you need to use either a radius or a custom shape.
See this thread where I gave some code that would also be useful for your question:
https://forums.coronalabs.com/topic/71376-very-slight-object-movement-after-resetting-position/
Also try changing the physics drawmode so you can see the physics bodies
[lua]
physics.setDrawMode( “hybrid” )
[/lua]
Yes. If your PNG files have transparent edges, you need to use either a radius or a custom shape.
See this thread where I gave some code that would also be useful for your question:
https://forums.coronalabs.com/topic/71376-very-slight-object-movement-after-resetting-position/
Also try changing the physics drawmode so you can see the physics bodies
[lua]
physics.setDrawMode( “hybrid” )
[/lua]