object is spinning.

I’m making a simpel test game. When you click on the screen the plane is going up when you do nothing the plane is falling down. But for some reason when i touch the screen, the plane is also spinning. I cant figure out what the problem is.

Here is my code:

– require

local physics = require “physics”

physics.start()

– background

local background = display.newImage(“bg2.png”)

background.anchorX = 0.1

background.anchorY = 0

– background.x = display.contentWidth/2

– background.y = display.contentHeight/2

local city1 = display.newImage(“city1_1.png”)

city1.anchorX = 0.1

city1.anchorY = 320

city1.x = 0

city1.y = 320

city1.speed = 1

local city2 = display.newImage(“city1_1.png”)

city2.anchorX = 0.1

city2.anchorY = 320

city2.x = 798

city2.y = 320

city2.speed = 1

local city3 = display.newImage(“city2_2.png”)

city3.anchorX = 0.1

city3.anchorY = 320

city3.x = 0

city3.y = 320

city3.speed = 2

local city4 = display.newImage(“city2_2.png”)

city4.anchorX = 0.1

city4.anchorY = 320

city4.x = 798

city4.y = 320

city4.speed = 2

function scrollCity(self,event)

    if self.x < -790 then

        self.x = 800

    else

        self.x = self.x - self.speed

    end

end

city1.enterFrame = scrollCity

Runtime:addEventListener(“enterFrame”, city1)

city2.enterFrame = scrollCity

Runtime:addEventListener(“enterFrame”, city2)

city3.enterFrame = scrollCity

Runtime:addEventListener(“enterFrame”, city3)

city4.enterFrame = scrollCity

Runtime:addEventListener(“enterFrame”, city4)

– jet

local jet = display.newImage(“redJet.png”)

jet.anchorX = 0

jet.anchorY = 0

jet.x = 100

jet.y = 100

physics.addBody(jet, “dynamic”, {density=.1, bounce=0.1, friction=.2, radius=12})

function activateJets(self,event)

    self:applyForce(0, -1.5, self.x, self.y)

end

function touchScreen(event)

    --print(“touch”)

   if event.phase == “began” then

        jet.enterFrame = activateJets

        Runtime:addEventListener(“enterFrame”, jet)

   end

   

   if event.phase == “ended” then

        Runtime:removeEventListener(“enterFrame”, jet)

   end

end

Runtime:addEventListener(“touch”, touchScreen)

try this;

jet.isFixedRotation = true

try this;

jet.isFixedRotation = true