Collision boundaries

Hey,

I am trying to set the collision boundaries on a floor image. The image is a rectangle with transparency at the top that has some items on it (grass) that should not collide with any thing. From what I have seen in the docs i should pass the values next to the image name to create the boundaries but it does not work for me.

[lua]local ground = display.newImage(“ground.png”, 480 , 56)
ground.x = 160; ground.y = 450
physics.addBody(ground, “static”, {density = 1.0, friction=0.5, bounce=0.3 } )[/lua]

P.S. How do i search the forum? I dont see a search option anywhere. [import]uid: 12521 topic_id: 4479 reply_id: 304479[/import]

Nevermind. :smiley: I posted to quickly. I found the answer. It was a couple of lines lower in the documentation. :smiley: [import]uid: 12521 topic_id: 4479 reply_id: 14043[/import]