I am not able to get accelerometer right in moving my object in landscapeRight mode , and i have tried hard to do it but i aint being able to get the job done . What i am trying to do is actually get my image moving through accelerometer (tilting stuff) , but i am not being able to do that . I wish somebody could help me out . Thanking you in advance.
Hi @hardikparekh07,
Your issue may be that the accelerometer works as if the app is in portrait mode, so for landscape, you need to adjust the readings by 90 degrees. This is explained in the docs here:
http://docs.coronalabs.com/api/event/accelerometer/xGravity.html
Best regards,
Brent
Hi @hardikparekh07,
Your issue may be that the accelerometer works as if the app is in portrait mode, so for landscape, you need to adjust the readings by 90 degrees. This is explained in the docs here:
http://docs.coronalabs.com/api/event/accelerometer/xGravity.html
Best regards,
Brent