So in the docs it says “kinematic” bodies are affected by forces but not by gravity.
Im having trouble understanding why this code doesnt work?
[code]
local physics = require(“physics”)
physics.start()
physics.setGravity( 0, 6 )
physics.setDrawMode(“hybrid”)
local function shoot()
local hangerBomb = display.newCircle(0,0,5)
hangerBomb.x = 50
hangerBomb.y = 50
physics.addBody(hangerBomb, “kinematic”, {friction = 0, density = 1, bounce = 0})
hangerBomb:applyLinearImpulse( 0, 10, hangerBomb.x, hangerBomb.y )
end
timer.performWithDelay(1000, shoot, 0)
[/code] [import]uid: 28912 topic_id: 33796 reply_id: 333796[/import]