This is something I quickly threw together using bits and pieces (including the example car shape), it isn’t pretty but it prints both element numbers from the collision - hopefully it will help 
[lua]-- Set up physics
require ( “physics” )
physics.start()
physics.setGravity( 0, 5 )
physics.setDrawMode ( “hybrid” )
local car = display.newRect( 100, 100, 60, 40 )
roofShape = { -20,-10, 20,-10, 20,10, -20,10 }
hoodShape = { 0,-35, 37,30, -37,30 }
trunkShape = { 0,-37, 37,-10, 23,34, -23,34, -37,-10 }
physics.addBody( car, “dynamic”,
{ density=3.0, friction=0.5, bounce=0.2, shape=roofShape },
{ density=6.0, friction=0.6, bounce=0.4, shape=hoodShape },
{ density=4.0, friction=0.5, bounce=0.4, shape=trunkShape }
)
local ground = display.newRect( 0, 470, 320, 10 )
physics.addBody(ground, “static”)
ground:addEventListener(“collision”, ground)
function onCollision (event)
if ( event.phase == “began” ) then
print( event.element1 … ": collision began with " … event.element2 )
elseif ( event.phase == “ended” ) then
print( event.element1 … ": collision ended with " … event.element2 )
end
end
Runtime:addEventListener(“collision”, onCollision)[/lua]
Peach
[import]uid: 52491 topic_id: 18425 reply_id: 71345[/import]