|
Greetings. I am making a script that uses Quaternion.Slerp command. It works, but I need to constrain the x and z-axis rotation so that only y-axis rotates. I've tried this with Quaternion.Euler but it didn't work. Here is a snippet of my script. Thank you in advance.
(comments are locked)
|
|
Okay nevermind. I got it. Just specified the x and z initially and it works. I'm just wondering if there is an overall implication to how the object react to other scripts, but it looks okay for now.
(comments are locked)
|
