Question by
JRoyer · Jul 06, 2020 at 02:09 PM ·
euleranglesquaternions
Is it possible to rotate 1 axis with Quaternions without using EulerAngles?
I'm trying to rotate my player but he keeps getting gimbal locked. Any ideas?
Comment
Best Answer
Answer by Raviish123 · Jul 07, 2020 at 03:05 AM
@JRoyer Use Quaternion.AngleAxis. It takes 2 parameters: the angle (float) you want to rotate, and the axis (Vector3) you want to rotate it around.
Your answer
![](https://koobas.hobune.stream/wayback/20220613002616im_/https://answers.unity.com/themes/thub/images/avi.jpg)