Moving Objects while they are affected by physics

I’m trying to move my object around via the touch method, which works fine expect if they are being affected by physics, in which case the second I stop moving my mouse in the simulator, the object starts to fall (Being affected by gravity) instead of staying in one position.

Here’s the code I’m using.

function moveBuildingBlock(e) if (e.phase=="began") then display.getCurrentStage():setFocus(e.target, e.id); e.target:setReferencePoint(display.CenterReferencePoint); elseif (e.phase=="moved") then e.target.x = e.x; e.target.y = e.y; elseif (e.phase=="ended") then display.getCurrentStage():setFocus(e.target, nil); end end block:addEventListener("touch", moveBuildingBlock) [import]uid: 30068 topic_id: 6062 reply_id: 306062[/import]

change the body type to “kinematic” [import]uid: 22457 topic_id: 6062 reply_id: 20866[/import]