Rotate an object in Unity [2021 Tutorial for beginners]

preview_player
Показать описание
A simple way to rotate an object in Unity. I show you a variety of ways including rotation via player input.

=========

About Tarodev:
Develop video games like a pro!
Рекомендации по теме
Комментарии
Автор

I had been struggling with this for about 40 minutes, then after finally deciding on going to search it up, I watch some tutorials for about 30 minutes but they don’t help me then I find this! A 2 minute video, with extremely simple code that does what I want! Thank you so much man, this is a great video!

biticalifi
Автор

I was three seconds away from a mental breakdown and you saved me! I have to code a VR experiment in Unity and clearly underestimated my abilities, but luckily there are guys like you out there to help me out!

nathanlaroy
Автор

I love these little snippets. I can casually watch them on break at work, or when I am in the line at a bank. It's really filling in my knowledge gaps. Thanks!

funlightfactory
Автор

No messing. Straight to the point. THANK YOU!

GlitchVR
Автор

Thank you, I just finished the project, this knowledge I have not learned, but thanks to this tip, I also understand a bit, Thank you

vongocanh
Автор

As a fairly experienced coder, it's nice to see I haven't forgotten the basics. Sadly it does mean my problem is far more infuriating. I'll keep checking, it's gotta be here somewhere.

MimsTwo
Автор

Gad damn thank you. I can't tell how i love videos under 5 minutes

Megabastmafia
Автор

Sir thank you for that ez tutorial, i just started 3 days ago with Unity on the Academy there and was searching for exactly that script so i could rotate the objects they want me to use in the academy games to make them more fun! Thank you so much now it is way more fun to work on the projects make projectiles rotate and so on! you have my like and my Sub!

x_sober
Автор

thanks so i was stuck on this for ages and you explain it in 2 minutes

fnstation
Автор

Can you do a video on more complex rotation operations and working with quaternion?

bobbob
Автор

You're knocking it out of the park with these tutorials. Short and to the point. Great stuff, thank yoU!!

durvids
Автор

i am mad because i can't upvote this more than once, Thank you

hocineache
Автор

I was looking for a way to rotate doors and fell into the deep abyss of euler angles and quaterions, but the tutorials never mentioned rotate method (which i believe also uses euler)

emaayan
Автор

This is so helpful, thank you. I have applied it to my sprite in a Flappy Bird type game to make it slowly rotate during play. What I'm struggling to do now, is reset the z position to 0 on game over / at start. I've looked around, read many forums, watched many videos and tried many scripts but it's not working for me. Do you have any guidance on this? Thank you.

LaurenArmiland-ywvh
Автор

This guy is amazing!! Clear and straight to the point. We needed a guy like him for some news Unity tutorial. Sub from me, GG!

kevinbasel
Автор

You are really amazing. You are really doing a good job! Please keep it!

hasankarakoc
Автор

hi uh i was wondering how would you make it rotate without having to press a button (basically its stuck on a loop). nice job on the video tho

kututube
Автор

how would you go about rotating the object by dragging the mouse (or touch if it's on mobile)?

AnnaGlin
Автор

Is there any way to make the object instantly snap to the rotation?

bandanaglitchy
Автор

Hey Tarodev, what if I wanted to start and end slowly, rather than instantly, just like a fan starting on or turning off. How can I do that?
And btw how did you get your scene looking the way it is looking.😃

shaikhabdulbasit