- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
XeroSoreX · Apr 02, 2014 at 08:44 PM ·
unity-android
Android rotation input?
Am trying to make a game for android but i have a problem, i need to move a gameObject left and right (X axis) with the mobile rotation:
**this.transform.position.x += Input.acceleration.x;**
Does Input.acceleration.x detect mobile rotation? How could i make this work?
Thanks.
Comment
Your answer
