Reply To: How to change transform.rotation

Forum Archive How to change transform.rotation Reply To: How to change transform.rotation

#36642
Jonathan Gonzalez
Participant

    @eithman Euler Angles are used as a Vector3 not a Quaternion. So you couldn’t use them directly like that. That’s why they were converted in that line. Also “Lerp” wouldn’t be used alone, you could use it for a variety of things but in this case you would have to determine what type of “Lerping” you wanted to do. So Quaternion.Lerp or something like Vector3.Lerp

    The script can be simplified a bit, but you’ll lose some flexibility. If you wanted to hard code everything it would be a bit simpler.