- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
kamotek008 · Jan 03, 2014 at 12:25 PM ·
androidphysicsgraphicsoptimization
Help! how to convert input.GetAxis to 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
Your answer
Follow this Question
Related Questions
HELP!!!! GetAxis to Accelerometer :) 0 Answers
Best transparent shader for Android devices 1 Answer
Why does my game require so much rendering power? 1 Answer
Somes problems on my 2D space shooter game (Unity 5.5.0p4) 0 Answers
Can I stop a lerp completely when it gets to 20% of its original value? 3 Answers