I really need help on making the object rotate to the position of the joystick. How would I do that?
1 Answer
1Getting the z axis and setting a quaternion: Quaternion rotation = Quaternion.Euler(0, Input.GetAxis("Joy Z Axis"), 0);
Setting the rotation to the quaternion: transform.rotation = rotation;
And to add the Z Axis Input:
[115491-screenshot-6.png|115491] So this is how it works. I want that cylinder to point in the exact direction of the joystick, and i just dont know how.
– CaptainPickle77
What have you tried?
– ScribeIs it 2D or 3D?
– Chik3rPretty much anywhere in the "Project" tab.
– scottishrob13