How do I rotate my player transform to peak left and right?

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

This is how you make a quaternion that locally rotates around the Y:

whateverTransform.localRotation = Quaternion.Euler( 0, angleLeftRight, 0);
1 Like