I got this to work a bit but it just goes in one direction.
I want the "Commander" to respond to all tilts.
What am i doing wrong below?
[attachment=0:5ym0tsar][/attachment:5ym0tsar]
Develop games in your browser. Powerful, performant & highly capable.
[quote:2y36gdfc]Compare orientation (manual: Touch)
Compare the device's current orientation, if the device has a supported inclinometer. Alpha is the compass direction in degrees. Beta is the device front-to-back tilt in degrees (i.e. tilting forwards away from you if holding in front of you). A positive value indicates front tilt and a negative value indicates back tilt. Gamma is the device left-to-right tilt in degrees (i.e. twisting if holding in front of you). A positive value indicates right tilt and a negative value indicates left tilt.
meaning you need Beta for moving in Y axis and Gamma for moving in the X axis.