Question by 
               b_schwartz · Aug 06, 2017 at 04:45 AM · 
                rotationinputjoystick  
              
 
              Move scene with gamepad joysticks?
I have this script, which is meant to perform a rotation transform using a mobile device accelerometer.
How would one do the same thing using a gamepad's joysticks, instead?
 using UnityEngine;
 using System.Collections;
  
 public class MoveScene : MonoBehaviour
 {
     void Update()
     {
         transform.rotation *= Quaternion.Euler(Input.acceleration.y/6, -Input.acceleration.x/3, 0);
     }
 }
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
How do i rotate an object towards joystick cursor position? 0 Answers
Switch between touchscreen and Google VR to control the Unity camera 1 Answer
Make CrossPlatformInput Joystick scale with resolution 1 Answer
Gamepad joystick rotation help needed, player turning strangely. 0 Answers
How to avoid single direction rotation with Quaternions? 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                