Help with gravity

Hello everyone, I just started writing code for a game but I have a problem with the gravity, in my game there should be coins falling, instead they go up, here’s my code, any idea of what could be wrong?
local physics = require(“physics”)
physics.start()
physics.setGravity(0, 9.8)

display.setStatusBar(display.HiddenStatusBar)
local background = display.newImage(“wall.png”)

local plate = display.newImage(“plate.png”)
plate.y = display.contentHeight
plate.x = display.contentWidth/2
physics.addBody(plate, “static”)

local coin = display.newImage(“coin.png”)
coin.y = display.contentHeight - 10
physics.addBody(coin) [import]uid: 128091 topic_id: 22195 reply_id: 322195[/import]

The coin should fall based on this code.

Do you rotate the device at all?

If you can upload a copy of your project I can run over here I’d be happy to try and help you out with it - I suspect it will be something simply but easy to overlook.

Peach :slight_smile: [import]uid: 52491 topic_id: 22195 reply_id: 88289[/import]