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;

0
0
PaulRein 125 points

                                    transform.eulerAngles = Vector3.forward * degrees;
// or
transform.rotation = Quaternion.Euler(Vector3.forward * degrees);
// or
transform.rotation = Quaternion.LookRotation(Vector3.forward, yAxisDirection);
// or
transform.LookAt(Vector3.forward, yAxisDirection);
// or
transform.right = xAxisDirection;
// or
transform.up = yAxisDirection;

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
rotate to degrees unity 2d get rotation unity 2d 2d rotation with transform unity how to set rotation of an object in unity 2d unity vector 2d rotation rotation in unity 2d how to use rotate in unity 2d how to rotate a object using scripts unity 2D unity 2d transform rotation how to rotate a gameobject through script unity 2d transform rotation unity 2d unity 2d rotation format unity 2d declare a rotation unity 2d player rotation transform 2d rotation unity 2D unity rotation unity 2d rotation from script how to set rotation of object in unity 2d with script how to change rotate of object in unity 2d with script how to rotate in unity 2d transform.rotation unity 2d how to make a object rotate to gravity unity 2d rotation to vector unity 2d rotation unity 2d unity rotate script 2d something = rotation unity 2d how to rotate a gameobject in unity 2d move rotation unity 2d rotate a 2d object unity quartenion rotation 2d unity how to rotate a 2d object in unity unity make rotation in 2d unity rotate towards point 2d how to make rotation in unity 3d unity object rotation script unity vector3 to rotation how to 2d rotate unity rotate to object unity 2e add rotation unity 2d 2d rotation unity how to stop a 2d object from rotate in unity unity 2d rotate object a few degrees unity 2d lock rotation how to rotate unity 2d how to rotate unity2d how to rotae sprite in uity by script unity 2d rotate object script how to change the rotate of a 2d object in unity unity 2d rotation animation unity 2D make onbject roteate how to rotate gameobject in unity 2d unity 2d game object rotate rotating object unity 2d trotate to object 2d unitry rotate sprite 2D unity C# rotate object unity 2d rotate unity 2d unity spinning ¨rotation 2d rotate sprite unity 2D C# how to rotate 2d object in unity script Rotate 2d spriteunity unity how to rotate a 2d object how to rotate an object in unity 2d unity rotation 2d rotating a 2d object in unity how to rotate a unity 2d object how to change the rotation of an object in unity 2d Rotate in 2d unity unity set sprite rotation unity rotate 2d sprite how to rotate a 2d gameObject unity c# rotate sprite unity script c# unity rotate object2d transform rotate unity 2d unity 2d sprite rotation how to rotate 2d unity unity how to rotate a 2d objcet unity 2d rotate object 2d rotate to unity unity rotate object 2d 2d rotation in unity how to change the roattion of a 2d object unity how to rotate a 2d object unity how to change an objects rotation unity 2d changing roatation of a 2d object in unity unity 2d rotate unity rotate 2d unity 2d rotation rotate a sprite unity rotate 2d object unity get gameobject rotation unity 2d rotate in unity 2d rotate object to unity 2d unity 2d rotation script unity rotate 2d object by angle transform.rotate unity 2d rotate transform unity 2d rotation unity script 2d
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source