Тёмный

Understand Unity Rotation in 5 minutes 

CodeForge
Подписаться 1 тыс.
Просмотров 13 тыс.
50% 1

Learn how to understand Rotation in Unity with this helpful video! Dive into the complexities of Quaternions and discover their functions, including Quaternion.LookRotation, Quaternion.Angle, Euler, Slerp, FromToRotation, and identity. Join Unity Forge in this informative video and unlock the secrets of Rotation/Quaternions!
Chapters:
0:00 Story
0:34 Basic concept
1:20 Quaternion.identity
1:39 Quaternion.Euler
2:08 Quaternion.LookRotation
2:45 Quaternion.Angle
3:00 Quaternion.FromToRotation
4:15 Quaternion.Slerp
5:02 Ending
Great Quaternion video that was used in the montage and as a background was made by 3Blue1Brown:
• Visualizing quaternion...
The music in this video is the property of Toby Fox:
• Undertale OST: 001 - O...

Опубликовано:

 

28 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@Banaaani
@Banaaani 8 месяцев назад
I am an ICT-engineer that specialized in game development. Even my Unity teacher said: if you need to work with quaternions, the best thing to do is go to a corner and cry.
@rustygear447
@rustygear447 11 месяцев назад
Great video. This is also how I deal with quaternion. Don't need to understand the math. Just know the useful functions.
@Napriiihm
@Napriiihm 15 дней назад
You make me laught with you serious voice with "quaternioon" at 0:12, that was the world I was Struggling with :D Thank you :)
@fkeyzuwu
@fkeyzuwu 10 месяцев назад
just learned about rotation types today and this popped in my recommended videos, super consice and helpful. although i think there might be some suboptimal solutions here but i understand the ideas overall.
@Zibit21
@Zibit21 28 дней назад
Mega-helpful video!
@StupidJellyfish
@StupidJellyfish 2 месяца назад
This was a fantastic tutorial. Thank you!
@smallwood369
@smallwood369 11 месяцев назад
Thanks, I learned a lot, specially on the `Quaternion.FromToRotation`.
@UnityForge
@UnityForge 11 месяцев назад
Thank you!
@CharleyThePostman
@CharleyThePostman 3 месяца назад
Wonderful!
@photonic083
@photonic083 27 дней назад
those chatgpt generated inspirational quotes were hilarious
@roronoa_d_law1075
@roronoa_d_law1075 11 месяцев назад
0:18 LMAOOO I can 100% relate to this
@zucth8447
@zucth8447 2 месяца назад
4 months ago I ask my senior, "What is Quaternion stand for? How do I use or understand these stuff" he said you better not, just ask for the result. . Today I just found this video, I'm not regret, it just a bit overwhelm. And yea my head is dead. 😂
@trunghieu974
@trunghieu974 9 месяцев назад
My biggest mistake while learning Unity was trying to understand quaternion DEEPLY 🤣🤣🤣🤣🤣🤣
@gostan2718
@gostan2718 Месяц назад
bro this is so funny I subscribed.
@thetruebeginner4382
@thetruebeginner4382 11 месяцев назад
Great video! Also where is your spaceship game available for download?
@UnityForge
@UnityForge 11 месяцев назад
Not yet, it relatively new concept and I don't work at it as much as I would like to because i'm starting collage therefore I'm working at the factory to earn some money. You can check out my other game, it's called GravAssist and is on google play
@angeldude101
@angeldude101 11 месяцев назад
If you're finding a Quaternion by getting an angle between two vectors with atan, you're probably better off using the function that takes two vectors and gives the Quaternion between them. The latter is really √(u/v) (literally, undoing v, then doing u, then halving the distance travelled because otherwise they act like reflections), which could require a normalization step, but doesn't require using atan and then immediately sine/cosine. If you're doing 2D games, then you really don't need Quaternions. Complex numbers work just fine as long as you don't treat them like 2D directions. Quaternions aren't inherently hard to understand. They're hard to understand because they're obfuscated.
@UnityForge
@UnityForge 11 месяцев назад
Thank you for your input. As I said in most of examples, there is little to no reason to use them in 2d games. Where i show them, it's because I thought I would be easier to understand by complete begginer. Maybe youre right, it might be confusing, it will avoid it next time
@UnityForge
@UnityForge 11 месяцев назад
+im showing function that makes quaternion form 2 vectors (FromToRotation). I used getting an angle to showcase Quaternion.Euler, because I wanted the example not to be static and making it this way is common practice, while dealing with topdown movement as a begginer
@angeldude101
@angeldude101 11 месяцев назад
@@UnityForge Going from the sides of a right triangle, to an angle, to the sides of a right triangle seems like a lot of wasted energy for "common practice." Regarding quaternions in 2D, again, it's somewhat wasted energy, especially since most compilers won't optimize multiplying by 0 due to f̸͖̽l̵̥͗o̷̥͋ȁ̷̜t̶̤̾î̴̥n̸̨͌ḡ̶̨ ̵̘͐p̷̬͌o̷͓̊i̴̫̇n̶̥̍t̴̪̕, but complex numbers also have a few properties that don't extend to quaternions which could mislead some people when trying to move from 2D to 3D. So for demonstration, using quaternions is probably fine as long as it's clear that one should use the right tool for the job.
@UnityForge
@UnityForge 11 месяцев назад
@@angeldude101 yeah you are probably right, I will remake this video some time in the future accoring to your points, also i feel i could explain it much more clearly. Trust me i chcecked many tutorials and forums and i found quite a lot of this "common practice" or maybe i can't google well, which is more likely
@angeldude101
@angeldude101 11 месяцев назад
@@UnityForge Honestly, I wouldn't be too surprised if it _was_ common practice, and from what little I've seen on my own, I would agree. I just think it's _silly_ that it's common practice when expanding the function calls reveals how it's literally just plugging the result of atan into sine and cosine, when the inputs to atan _are the sine and cosine._
@acousticcallum
@acousticcallum 5 месяцев назад
I think the reason no one uses Quaternion.AngleAxis is because you can just use Quaternion.Euler with the the angle multiplied by the normalized axis. If you want to rotate A degrees around axis B you just do Quaternion.Euler(A * B.normalized)
@toot8208
@toot8208 4 месяца назад
i love you.
@protonproductions
@protonproductions 9 месяцев назад
I an trying to rotate objects to a certain angle using Quaternion.Euler but it does not seem to work:( //_rotY is set through inspector for eachh of the 4 objects. transform.parent.rotation = Quaternion.Euler(0, _rotY, 0); //wrong rotation _parentAnim.speed = 0f; meshRenderer.material.SetColor("_TintColor", new Color(1f, 0, 0, 10 / 255f));
@UnityForge
@UnityForge 9 месяцев назад
Try doing it with hardcoded values (eg. transform.parent.rotation = Quaternion.Euler(0, 45, 0);), if it works corretly it's _rotY fault. Also remember you are setting global rotation, if you're intending to set the local rotation (rotation relative to the parent object), you should use transform.parent.localRotation instead of transform.parent.rotation.
@Zicore47
@Zicore47 8 месяцев назад
I still don't understand how I rotate around X and Y only and locking Z...
@watercat1248
@watercat1248 3 месяца назад
I don't have any question but it's very hard to remember all those rotesion faction's I need to watch this video wean need them in the order to understand how they works.
@jackbotman
@jackbotman 2 месяца назад
Quaternion: Let's represent 3D rotation using a 4th dimension Big brain time, bois.
@tym3k257
@tym3k257 11 месяцев назад
łapka w dul
@UnityForge
@UnityForge 11 месяцев назад
beztakich...
@icefresh983
@icefresh983 11 месяцев назад
first
@Maks-qj8xe
@Maks-qj8xe 11 месяцев назад
aha
@fv4202x
@fv4202x 8 месяцев назад
0:31 No I can!!!! **spends entire life to learn it to prove u wrong** No one going to deal with that. Every content creator should talk certain like this instead of creating 20 sentences to explain.
@lemetamax
@lemetamax 3 месяца назад
Now, explain quaternion. Not Quaternion. The one with a lower q😅
@dumblegeorge
@dumblegeorge 2 месяца назад
thank you very much for this video you explained it so well
@fardplayer69
@fardplayer69 3 месяца назад
Im just an beginner and after watching this I feel like Im dumb as a rock, though I like your way of presenting such hard concepts. Would you mind making a tutorial series for beginners like me.
@UnityForge
@UnityForge 3 месяца назад
I'm currently working on a video about something else, but my next project will be a tutorial which will teach all the basics
Далее
10 mins GameDev tips - Quaternions
10:12
Просмотров 105 тыс.
#225. КВАТЕРНИОНЫ и углы Эйлера
10:34
Stray Kids <ATE> UNVEIL : TRACK "MOUNTAINS"
00:59
Просмотров 685 тыс.
How to Use Quaternions
14:20
Просмотров 10 тыс.
2D Projectiles in Unity - Tutorial
25:19
Просмотров 2,3 тыс.
QUATERNIONS Explained VISUALLY in 381 Seconds
6:21
Просмотров 3 тыс.
Rigidbody in Unity - Everything You Need to Know
9:03
I RECREATED UNITY IN UNITY IN "5" DAYS
6:23
Просмотров 52 тыс.
Giving Personality to Procedural Animations using Math
15:30