- Home /
Question by
wechat_os_Qy06wAhXkhE_FJB9SoNu6dJeo · Oct 01, 2020 at 04:11 AM ·
rotationquaternionrotation axis
How can I make it only rotate at X axis?
desireRotation is a Transform and cam is camera
qe.png
(4.4 kB)
Comment
You could probably try something like: Quaternion.Euler(myTransform.EulerAngles.x, 0, 0) So basically translate the rotation into Euler, pick only the x axis and transform back
Your answer
Follow this Question
Related Questions
Rotation changing in untouched axis 1 Answer
Set Rotation on Multiple Axis 1 Answer
Prevent child rotation but still control it yourself 1 Answer
Locking rotation makes object spin 0 Answers
Quaternion LookRotation issue 0 Answers