Answers for "how to make the rotation of an object the same as another object in unity"

C#
1

how to make the rotation of an object the same as another object in unity

Vector3 newRot = new Vector3 (otherObject.transform.eulerAngles.x, otherObject.transform.eulerAngles.y, transform.eulerAngles.z);
 transform.rotation = Quaternion.Euler (newRot);
Posted by: Guest on February-02-2020

Code answers related to "how to make the rotation of an object the same as another object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language