Answers for "move rotation unity"

C#
2

how to chagne rotation in unity

transform.eulerAngles = new Vector3(0f, 180f, 0f); // rotates 180 degrees
Posted by: Guest on February-24-2020
0

unity rotate direction by angle

vector = Quaternion.AngleAxis(-45, Vector3.up) * vector;
Posted by: Guest on June-17-2021

C# Answers by Framework

Browse Popular Code Answers by Language