when I run the program, the ship object always goes up instead of down. adding physics.setGravity doesn’t help. can I have some help?
here is the code (not permitted to upload sublime text file):
local physics1 = require(“physics”)
physics.start()
physics.setGravity( 0, 9.8 )
local ground = display.newImage(“ground.png”)
ground.x = display.contentWidth/2
ground.y = 340
physics.addBody(ground, {friction = .5})
ground.bodyType = “static”
local ship = display.newImage(“Space_Ship_Furniture.png”)
ship.x = display.contentWidth/2
ship.y = 340
ship.xScale = .06
ship.yScale = .06
physics.addBody( ship, { density = 2.0, friction = 0.5, bounce = 0.3 } )