How to Rotate in Unity

Want to know how to CODE in Unity? Go here: gamedevbeginner.com/how-to-co...
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: gamedevbeginner.com/how-to-ro...
Max Kaufmann's Smooth Damp Quaternion example: gist.github.com/maxattack/4c7...
Credits:
Outro music: New Year by Bad Snacks
Unity icons created by Freepik - www.flaticon.com/free-icons/u...

Пікірлер: 32

  • @JadonBarnes
    @JadonBarnes Жыл бұрын

    Unity needs to hire you for tutorials on their official channel

  • @TayMcQuaya
    @TayMcQuaya Жыл бұрын

    for some reason i could solve my rotation problems by googling a lot. but having a full explanaition video which can be used as reference to know how the methods actually work and in which case they are more convenient than others, this video is a really good guide. good job

  • @maramark
    @maramark21 күн бұрын

    Such a good video thank you ☺️

  • @martinvdev1565
    @martinvdev1565 Жыл бұрын

    You are so underrated, great content, great videos, great quality and this was just what I needed

  • @makoto-samaru8004
    @makoto-samaru8004 Жыл бұрын

    Your tutorials are so good and easy to follow!

  • @drochleprechaun
    @drochleprechaun Жыл бұрын

    Great video! I hadn't used a few of these methods and I'm sure they will come in handy.

  • @ddddddd4481
    @ddddddd4481 Жыл бұрын

    i am in shock!! why this clear illustrative video has really small amount of views! i don't understand... this comment i dedicate to your future success. thanks a lot!

  • @NaughtyDuck
    @NaughtyDuck Жыл бұрын

    OMG, i had to watch all your videos and press like button. You and this channel is AWESOME!!!!!

  • @dreamisover9813
    @dreamisover9813 Жыл бұрын

    Didn't know about the youtube channel, but I have seen some of your blog articles in the past, and they were amazing and thorough!

  • @GameDevBeginner

    @GameDevBeginner

    Жыл бұрын

    Thank you!

  • @akioasakura3624
    @akioasakura3624 Жыл бұрын

    GOAT video many thanks sir

  • @MyPing0
    @MyPing0 Жыл бұрын

    Hey man thanks for this! I was recently messing with rotations in my game, and it was not fun 😅. I used all sorts of built-in functions and properties like .EularAngles or Rotate() but didn't really know what I was doing. So this video clears things up a lot, thanks!

  • @andreyradostny
    @andreyradostny Жыл бұрын

    I think I'll never understand those quaternions clearly, but at least I got why and how to live with it ) Thanks!

  • @MarekNijaki
    @MarekNijaki Жыл бұрын

    Awesome video

  • @HonorLone
    @HonorLone Жыл бұрын

    your website and videos explaination is so great and clear one thing that is really cool is when some technical details are needed as background for one tutorial and many tutorials may not cover it but sometimes explaining them is really useful for example in Raycast tutorial in your blog when the "out" keyword of C# explained to have a better understanding of Raycast funtction. good luck keep this up!

  • @GameDevBeginner

    @GameDevBeginner

    Жыл бұрын

    Thanks so much!

  • @hemanthadapala6910
    @hemanthadapala6910 Жыл бұрын

    you are tutorials King i already know the concepts which u posted videos on but when i see those vidoes i'm learning new thing for every minute. Amazing work can u do the Tutorial on Animations Different types of patterns DoTween. i knew there are lot of Videos on Animations but i belive when u make a video that is top of all

  • @grizzlyjer074
    @grizzlyjer074 Жыл бұрын

    Liked your video! I'm new to programming and trying to build a cube game. Could you make a video that shows when onmousedown it rotates to a side and onmousedown again shows a different side and continues the process to the last side.

  • @laarka9161
    @laarka9161 Жыл бұрын

    Your video was so useful, im trying to do a worms type game and i didin't knew how to make the gun rotate around a point instead of rotating on his center.

  • @GameDevBeginner

    @GameDevBeginner

    Жыл бұрын

    Great to hear it helped!

  • @playfuljoker8039
    @playfuljoker8039 Жыл бұрын

    Hello. Anyone have a simple sitting on chair tutorial in unity?Like there will be an arrow on top of the chair and when you click or trigger it you will sit on chair or something similar.My problem is I don't sit on chair I sit in front of it while facing it.Anyone know how I can rotate my character before I sit? Thank you

  • @herksku9051
    @herksku9051 Жыл бұрын

    if i place my object i want to rotate under the parent object i want to rotate around, the center of the parent object simply snaps to that of the child object, how do i fix this?

  • @piotrrywczak7971
    @piotrrywczak7971 Жыл бұрын

    all I want is the rotate tool, just like the default move tool, to change once the rotation of the light source once, for workflow reasons, before I export the model from unity and never look back at unity again😭 In Blender you just clock "r" and it rotates :c

  • @piotrrywczak7971

    @piotrrywczak7971

    Жыл бұрын

    6:43 How do you see those red, blue, green circles around the object?

  • @piotrrywczak7971

    @piotrrywczak7971

    Жыл бұрын

    It's literally impossible to find. Everyone talks about everything and writes functions in c++ or c# idk. I literally just want to learn how to get those three circles to rotate the object once in the scene editor xDDD Maybe I'll ask GPT

  • @piotrrywczak7971

    @piotrrywczak7971

    Жыл бұрын

    Rotate tool in the top left corner, second next to the hand symbol, just above the Hierarchy window on my default settings for Unity 2019.sth.sth

  • @shadowthejudgehog9081
    @shadowthejudgehog9081 Жыл бұрын

    how is this free!? THANK YOU

  • @kingamazur3087
    @kingamazur308711 ай бұрын

    Wait this great tutorial isn't made by unity

  • @ligofleyens9131
    @ligofleyens9131 Жыл бұрын

    Like any normal person, I just destroy the original object and recreate it with the new rotation, each frame.

  • @owaissaeed5935
    @owaissaeed5935 Жыл бұрын

    BÆÑŅĄŇÆ ŘŒŢÆȚƏ

  • @gustavomachado307
    @gustavomachado3076 ай бұрын

    am I the only one that thinks it's extremely stupid that X is the vertical axis?

  • @user-qp2ps1bk3b
    @user-qp2ps1bk3b3 ай бұрын

    by god this is confusing