How to Rotate in Unity

Опубликовано: 03 Октябрь 2024
на канале: Game Dev Beginner
25,834
845

Want to know how to CODE in Unity? Get my course here: https://gamedevbeginner.gumroad.com/l...

Learn how to rotate anything in Unity.

00:00 Intro
00:35 Rotation in Unity
04:20 The Rotate function
05:40 How to Rotate around a point
09:38 How to Rotate towards another object
14:07 Rotating with Physics
15:02 Rotating in 2D
15:35 Outro

You'll learn how to rotate an object around itself and around other points in the world, how to rotate an object towards another (smoothly) and how to use Euler angles and Quaternions together (the right way).

Read my full article here: https://gamedevbeginner.com/how-to-ro...

Max Kaufmann's Smooth Damp Quaternion example: https://gist.github.com/maxattack/4c7...

Credits:

Outro music: New Year by Bad Snacks
Unity icons created by Freepik - https://www.flaticon.com/free-icons/u...