See the below code the objects actually pass through the line which is a static physics object. on the left side of the line the objects bounces but on the right side it just passes through. whats happening here ? any idea ?
[lua]local gameGroup = display.newGroup()
local physics = require(“physics”)
physics.start()
function newObject()
local rand = math.random( 110 )
obj = display.newText(rand,0,0,nil,20)
obj.x = 10 + math.random( 200 )
obj.y = -100
physics.addBody( obj, { density=0.5, friction=0.3, bounce=0} )
end
local dropobjects = timer.performWithDelay( 1000, newObject, 100 )
local groundLine = display.newLine(10, 300, 320, 300)
groundLine.width = 5
groundLine:setColor( 255, 0, 0)
physics.addBody( groundLine, “static”) [/lua]
[import]uid: 71210 topic_id: 13330 reply_id: 313330[/import]