This does not work
ob = display.newRect(0,0,100,100)
physics.addBody( ob, “static”, { density=1.0, shape = ob.shape } )
ob.angularVelocity = 10
ob:applyTorque( 100 )
and this neither:
function getObject()
local p = display.newRect(0,0,100,100)
local function loop()
p.rotation = p.rotation + 10
end
Runtime:addEventListener( “enterFrame”, loop )
return p
end
local ob = getObject()
I get no errors in both cases but the object does not rotate in any case.
[import]uid: 21280 topic_id: 5580 reply_id: 305580[/import]