heres my gyroscope event
function moveWorld(event)
local deltaR = event.xRotation \* event.deltaTime
local deltaD = ( deltaR \* ( 180 / math.pi ) )
player.rotation = deltaD
local ny = (math.sin(math.rad(player.rotation+90)))\*.5
local nx = (math.cos(math.rad(player.rotation-90)))\*.5
player.y = player.y - ny
playert.x = player.x + nx
world.yReference = player.y
world.xReference = player.x
world.x, world.y = \_w,\_h
end
and heres my build file
settings = {
orientation = {
default = "landscapeLeft",
},
iphone = {
plist = {
UIRequiredDeviceCapabilities = "gyroscope",
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
UIAppFonts =
{
"Cyberspace.ttf"
}
},
},
}
it works fine in luaGlider but on device the player doesnt rotate at all [import]uid: 7911 topic_id: 34025 reply_id: 334025[/import]