- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
kamotek008 · Jan 03, 2014 at 12:25 PM ·
androidgraphicsoptimizationacceleration
HELP!!!! GetAxis to Accelerometer :)
pls help how to convert it into accelerometer
var hor = Input.GetAxis("Vertical"); // use the same axis that move back/forth var ver = Input.GetAxis("Horizontal"); // use the same axis that turns left/right transform.localEulerAngles.x = -ver*60; // forth/back banking first! transform.localEulerAngles.z = hor*45; // left/right
Comment