Answers for "unity 2d direction to rotation"

C#
1

rotation unity script 2d

transform.Rotate(Vector3(0, 0, 50));
//instead of :
transform.eulerAngles = new Vector3 (0, 0, 50);
//or like you said
transform.eulerAngles = Vector3.forward * 50;
Posted by: Guest on June-26-2020

C# Answers by Framework

Browse Popular Code Answers by Language