collision 2 static object

Hello, please help
two objects with the static type of the body does not listen to the event of collision
How else can fix the collision?

[code]
local physics = require “physics”
physics.start()

local Circle = {}
local CircleId = 1

function collide( e )
if ( ( e.object1.tag == “wall” ) and ( e.object2.tag == “circle” ) ) then
e.object1:removeSelf()
end
end

function spawn( e )
if e.phase == “ended” then
Circle[CircleId] = display.newCircle( e.x, e.y, 25 )
Circle[CircleId].tag = “circle”
physics.addBody( Circle[CircleId], “static”, { density = 3, friction = 1, bounce = 1, radius = 25 } )
CircleId = CircleId + 1
end
end

function main()
local Wall1 = display.newRect( 0, 0, 10, 320 )
Wall1.tag = “wall”
physics.addBody( Wall1, “static”, { density = 3, friction = 1, bounce = 1, radius = 25 } )

local Wall2 = display.newRect( 470, 0, 10, 320 )
Wall2.tag = “wall”
physics.addBody( Wall2, “static”, { density = 3, friction = 1, bounce = 1, radius = 25 } )

Runtime:addEventListener( “touch”, spawn )
Runtime:addEventListener( “collision”, collide )
end

main()
[/code] [import]uid: 159707 topic_id: 28026 reply_id: 328026[/import]

Are all/most of your objects going to be static? How about dynamic circles that are sensors and 0,0 gravity? [import]uid: 52491 topic_id: 28026 reply_id: 113491[/import]