gyroscope issues

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]

Have you put some print statements in your event handler to make sure it’s getting called? Dumped the values of event table to make sure they are updating? [import]uid: 199310 topic_id: 34025 reply_id: 135314[/import]

Yes the event is being called and values are changing when ran in debug mode on
LuaGlider and sliding the gyro control [import]uid: 7911 topic_id: 34025 reply_id: 135318[/import]

Forgot to say I’m running on iPhone 5 iOS 6.0.1 [import]uid: 7911 topic_id: 34025 reply_id: 135321[/import]

And if I leave out deltaR and calculate deltaD from event.xRotation I do get a small bit of a wiggle from the player but no change in rotation [import]uid: 7911 topic_id: 34025 reply_id: 135323[/import]

But did you put the prints in and look at the console log on the device?
[import]uid: 199310 topic_id: 34025 reply_id: 135325[/import]

No I’ve never done that before. Ill try later when I get home. Thx [import]uid: 7911 topic_id: 34025 reply_id: 135336[/import]

No I’ve never done that before. Ill try later when I get home. Thx [import]uid: 7911 topic_id: 34025 reply_id: 135337[/import]

Wasn’t able to make changes and get rebuilt before my sub. Ran out, missed it by 5 min.
Anyway I’m not renewing for a few days. Gonna put some time in on my website. So ill get back to you with that later this week. Thx [import]uid: 7911 topic_id: 34025 reply_id: 135371[/import]

Have you put some print statements in your event handler to make sure it’s getting called? Dumped the values of event table to make sure they are updating? [import]uid: 199310 topic_id: 34025 reply_id: 135314[/import]

Yes the event is being called and values are changing when ran in debug mode on
LuaGlider and sliding the gyro control [import]uid: 7911 topic_id: 34025 reply_id: 135318[/import]

Forgot to say I’m running on iPhone 5 iOS 6.0.1 [import]uid: 7911 topic_id: 34025 reply_id: 135321[/import]

And if I leave out deltaR and calculate deltaD from event.xRotation I do get a small bit of a wiggle from the player but no change in rotation [import]uid: 7911 topic_id: 34025 reply_id: 135323[/import]

But did you put the prints in and look at the console log on the device?
[import]uid: 199310 topic_id: 34025 reply_id: 135325[/import]

No I’ve never done that before. Ill try later when I get home. Thx [import]uid: 7911 topic_id: 34025 reply_id: 135336[/import]

No I’ve never done that before. Ill try later when I get home. Thx [import]uid: 7911 topic_id: 34025 reply_id: 135337[/import]

Wasn’t able to make changes and get rebuilt before my sub. Ran out, missed it by 5 min.
Anyway I’m not renewing for a few days. Gonna put some time in on my website. So ill get back to you with that later this week. Thx [import]uid: 7911 topic_id: 34025 reply_id: 135371[/import]