Make the Player rotate with right xbox stick and move with left xbox stick
hey guys
im super new to the unity engine and Coding. i am going to make a top down game with xbox one Controller. the movement for the left xbox stick is working well, i found something good on Google.
public class Player_Controller : MonoBehaviour {
 public float moveSpeed;
 private Rigidbody2D myRigidbody;
 private Vector3 moveInput;
 private Vector3 moveVelocity;
 // Use this for initialization
 void Start () {
     myRigidbody = GetComponent<Rigidbody2D> ();
 }
 
 // Update is called once per frame
 void Update () {
     moveInput = new Vector3 (Input.GetAxisRaw ("Horizontal"), Input.GetAxisRaw ("Vertical"), 0f );
     moveVelocity = moveInput * moveSpeed;
     Quaternion.LookRotation
 }
 void FixedUpdate () {
     myRigidbody.velocity = moveVelocity;
 }
 
               }
now i am searching some Code where i can use the RIGHT xbox stick to rotate the direction of the character. i found some codes like "face the direction to the movement direction", but i want to move the Player with the left stick and rotate the Player with the right stick.. i hope i explanid it good to udnerstand :D im new to coding and unity, would be great if u explain me how i can do the Rotation stuff.
thank u much
Your answer
 
             Follow this Question
Related Questions
How to give the player a limited amount of moves? 1 Answer
Object movement algorithm 0 Answers
sprite bug: animator doesnt work and it gets bigger 0 Answers
Can't make non-smooth movement script 0 Answers
Pushing enemy makes them stop following the player 0 Answers