2D Movement [Rigidbody vs Transform] Mastery Tutorial Unity (2021 edition)

  Рет қаралды 91,551

GAME GLiTcH

GAME GLiTcH

Күн бұрын

This tutorial goes over all the different options for moving a player in Unity and the benefits and disadvantages of each. It also goes over the difference between Rigidbody vs Transform movements. If you want to take a deep dive on how to do movement in Unity than this is the video for you!
Patreon:
/ gameglitchsupport
Sprites used in video:
www.patreon.com/posts/2d-move...
Corrected Movement Compatibility Table:
www.patreon.com/posts/correct...
3D to 2D Tutorial:
• Converting 3D characte...
Unities Pixel Perfect Camera:
• Pixel Perfect Lights a...
Unity deltaTime Tutorial:
• C# DeltaTime in Unity!...
Time Codes:
00:00 - Intro
00:26 - Scene setup
00:50 - Prerequisites
04:52 - Player Setup
07:03 - Transform Movement
11:13 - Rigidbody Script setup
12:45 - Rigidbody Add Force
14:37 - Rigidbody Velocity
17:02 - Rigidbody Move Position
18:26 - Conclusion
20:00 - Bonus Tip
20:19 - Outro
My Computer Set Up:
Samsung Curved Monitor - amzn.to/3bBsL1B
EVGA RTX 3070 - amzn.to/3tTNHqP
Lian Li LAN2MRX LANCOOL II MESH RGB - amzn.to/3tVk6xw
AMD Ryzen 5 3600 6-Core with Wraith Stealth Cooler - amzn.to/3eTvx4s
MSI B550 Gaming - amzn.to/3tTXBcg
Corsair - RM Series 750W - amzn.to/3wiNSxN
Corsair LL Series LL120 RGB 120mm Dual Light - amzn.to/3hya4Q9
Microphone:
AT2020 USB Mic - amzn.to/3u2kri0
Shock Mount and Pop Filter - amzn.to/3fkG3kc
Camera:
Sony a6400 - amzn.to/2USPa59

Пікірлер: 376
@GAMEGLiTcHDevelopment
@GAMEGLiTcHDevelopment 2 жыл бұрын
Correction for rigidbody movements: I apologize guys but apparently when changing physics materials you have to completely remove the physics materials and add it back to get it to work without having to re-run the game inside of Unity. Gotta love bugs! MovePosition: (Responsive - ✔ Friction - ✔ Gravity - ✖ ) Velocity: (Responsive - ✔ Friction - ✔ Gravity - ✔ ) AddForce: (Responsive - ✖ Friction - ✔ Gravity - ✔ ) Also as many have pointed out in the comments time.deltaTime is not necessary for rb.velocity and rb.AddForce as Unity has already accounted for time in there physics engine using these methods. MovePosition still needs time.deltaTime as it does not account for time on its own.
@technofeeliak
@technofeeliak Жыл бұрын
Now THIS sir is a proper explanation. You have my attention. You're not speaking too fast. Your English is understandable. I'm going to be watching the rest of your videos.
@ZacMarvinGameDev
@ZacMarvinGameDev 2 жыл бұрын
One of the most clear, concise, and in depth explanations I've seen. Your videos are extremely high quality. You definitely got a sub from me.
@minitrex4533
@minitrex4533 Жыл бұрын
Would love it if you continue this series...the best thing i ever saw on KZbin❤️
@Ovogonia
@Ovogonia 2 жыл бұрын
I was looking exactly for an explanation of the differences between Transform and rigidbody movement and this video didn't disappoint ^^ Thank you so much, it was very in-depth yet still concise and useful! Happily subscribed.
@EricLindahlJamnoran
@EricLindahlJamnoran 2 жыл бұрын
Awesome tutorial. Worked with unity a couple of years but still learned some new things!
@siddharthsudhakaran1936
@siddharthsudhakaran1936 Жыл бұрын
This was so clear and concise and answered most of my doubts w.r.t to the movement system in Unity. Thank you !!!
@Subreeze102
@Subreeze102 2 жыл бұрын
This is really fantastic, looking forward to whatever you make next.
@SlightSki
@SlightSki 11 ай бұрын
Best explanation I’ve came across yet. Wish you kept posting more
@godknowswho
@godknowswho Жыл бұрын
This was so helpful! Way more in depth and usable for a (somewhat experienced but not really) game dev! I hope you make more videos!
@WhitefoxSpace
@WhitefoxSpace 2 жыл бұрын
YES. I am VERY happy you uploaded again!!
@youssefbarmaki3758
@youssefbarmaki3758 Жыл бұрын
Installed, everything works, thanks!
@rgbhere
@rgbhere Жыл бұрын
Clear, Concise, in-depth and informative. Subbed!
@SynysterSeed
@SynysterSeed 7 ай бұрын
Great video, Short, Informative and To the point! Hope you make some more!! Thanks this helps a lot
@rondoniasoldas9497
@rondoniasoldas9497 Жыл бұрын
Best soft soft tutorial for beginners on KZbin! I'm an absolute beginner and all the other tutorials I've found on KZbin have been so
@marvinsantizo2510
@marvinsantizo2510 Жыл бұрын
that was exactly what I needed , thank you so much
@ammanfarooq9497
@ammanfarooq9497 Жыл бұрын
Bro I really do appreciate you for this help, Thanks! I subscribed and Liked the video.
@r8teful
@r8teful 2 жыл бұрын
Very clearly explained and professional. can't wait for more videos. Keep it up👍
@jpspxd8130
@jpspxd8130 Жыл бұрын
Hey man thanks a lot. I was really overwheld and confused but now it all makes sense. Thank you.
@anduril2197
@anduril2197 2 ай бұрын
Thanks bro. I finally understood the real deal. After watching so many videos
@kapilsharma1121
@kapilsharma1121 Жыл бұрын
decided to try it out.
@wahyumrizqi3122
@wahyumrizqi3122 Жыл бұрын
You are a hero bro. Nice explanation it's easy to understand. Send a Big Thanks. Cheers
@jason2li
@jason2li 2 жыл бұрын
This was the best explanation I've seen so far. Thanks so much!
@GAMEGLiTcHDevelopment
@GAMEGLiTcHDevelopment 2 жыл бұрын
No problem!
@norishernandezvelasquez9510
@norishernandezvelasquez9510 Жыл бұрын
It really worked for me after I look and try some tutorials, yours is the one that worked. Owe you a lot.
@freddydickson3071
@freddydickson3071 2 жыл бұрын
It’s just a matter of time until you blow up. These videos are seriously top notch tutorials, thank you!
@ogurexin4327
@ogurexin4327 Жыл бұрын
Exactly what I needed and was looking for! Thanks!!
@hebermusic9686
@hebermusic9686 Жыл бұрын
It really worked for me after I look and try some
@badass8069
@badass8069 Жыл бұрын
TNice tutorials is one of the best intro soft softs I've ever seen. The entire basic worksoftow with no B.S.!
@jhonhuaman9014
@jhonhuaman9014 Жыл бұрын
Nailed it! Thx for the advice!
@kingyohan5321
@kingyohan5321 Жыл бұрын
Thank you man for sharing this stuff
@islaminjass6898
@islaminjass6898 Жыл бұрын
Just bought soft soft! So excited to get started!!
@ramen201
@ramen201 2 жыл бұрын
I loved this tutorial looking forward for more of them :)
@untitled8591
@untitled8591 Жыл бұрын
Highly Underrated Channel....This video is the best explanation for the regarding topic.....Great Work
@EhsanEnglishCare2000
@EhsanEnglishCare2000 Жыл бұрын
The introduction was very helpful, thanks!
@wiselan612
@wiselan612 Жыл бұрын
Worked! What an absolute genius mad lad! Was so easy
@resistancefighter888
@resistancefighter888 2 жыл бұрын
The best video I've seen on this topic, thank you very much!
@rocketpirns9357
@rocketpirns9357 Жыл бұрын
I can't believe literally no one is talking about how satisfying Nice tutorials voice softs.
@totallyrandom3610
@totallyrandom3610 Жыл бұрын
It Worked perfectly after trying other methods this one was the best one, Thanks.
@bruno.eo.
@bruno.eo. Жыл бұрын
Thanks man it helped a lot. I tested this on my s
@wakeupemprende
@wakeupemprende Жыл бұрын
This tutorial is amazing and you are really good at teaching !! great job sir !
@semik_0238
@semik_0238 Жыл бұрын
Thanks man!! You've earned my respect
@melkerhallstrom9339
@melkerhallstrom9339 Жыл бұрын
Amazing tutorial, subscribed and liked!
@NotTheHeroStudios
@NotTheHeroStudios Жыл бұрын
I'm mad how long it took me to find this I've been pouring over unity stuff and I wanted to make sure I understood what it meant, and I just wanted a video that just verified my question.. And boom perfect. Thank you, so much
@jorisding
@jorisding 2 жыл бұрын
Your ability to easily explain is top tier! Can't wait to watch your future content!
@gorkembektas1710
@gorkembektas1710 Жыл бұрын
Thank you so much dude.... Helped me a lot
@noble6677
@noble6677 2 жыл бұрын
You need more attention, this was super helpful!
@PanButelly.
@PanButelly. Жыл бұрын
looking forward to learning from the rest of your videos. Subscribed!
@baiatul_ala_simplu7939
@baiatul_ala_simplu7939 Жыл бұрын
Thank you men ❤️❤️❤️💙 It's the best video I've seen
@haciendasagrada4488
@haciendasagrada4488 Жыл бұрын
This is the best free software Ive seen. Respect.
@yisperbetancourt3933
@yisperbetancourt3933 Жыл бұрын
Super well explained.
@brandonsanchez2673
@brandonsanchez2673 Жыл бұрын
Thanks for the video! Very helpful and easy to follow instructions
@MatheusOliveira-ve8no
@MatheusOliveira-ve8no Жыл бұрын
TNice tutorials was very helpful thankyou.
@user-xk4hk2zj8t
@user-xk4hk2zj8t Жыл бұрын
Thank you for your reply!
@ratheeshk7809
@ratheeshk7809 Жыл бұрын
Oooh..this guy absolute legend. And his clear explanation video quality ⚡
@andreman2767
@andreman2767 2 жыл бұрын
Wow, really cool tutorial with useful theoretical stuff. Thanks!
@erfanakhavan1373
@erfanakhavan1373 Жыл бұрын
you explained. Thank you so much.
@regys9521
@regys9521 2 жыл бұрын
This is one the best videos on those subjects, thanks man
@itsmermb8394
@itsmermb8394 Жыл бұрын
thanks a lot!!! so nice reverb
@ItsMeHelel
@ItsMeHelel 2 жыл бұрын
Excellent quality! Subscribed, but then got sad that you only have 3 videos so far... well, take your time, I'll be waiting gladly for top-notch quality videos like this one!
@GAMEGLiTcHDevelopment
@GAMEGLiTcHDevelopment 2 жыл бұрын
There will be more to come but I like to take my time and be detailed with my videos. So thank you for subscribing and I promise it will be worth it!
@ItzYassine89
@ItzYassine89 Жыл бұрын
I know tNice tutorials is an old video but I’m new and thank god I finally found you . Thank you for such an amazing and helpful video ❤️
@aukeychannel7693
@aukeychannel7693 Жыл бұрын
thanks, downloaded, all works!
@jpspxd8130
@jpspxd8130 Жыл бұрын
Thanks for your video i have tried this on my low end pc and now i am playing
@arinwald
@arinwald 2 жыл бұрын
Really great and well explainated tutorial!
@sm.technicalinfo5897
@sm.technicalinfo5897 Жыл бұрын
Good build, nice work
@anjah.2304
@anjah.2304 Жыл бұрын
Thanks so much for this explanation! I've been watching a (payed!) tutorial for 2d games in untiy and the tutor said i should remove the rigidbody from my main character and use some scripted logic for collusion besides using tranform for moving the character.. now i now how it works correctly! :)
@jasminemickaellalurian7268
@jasminemickaellalurian7268 Жыл бұрын
Hey! Thanks so much for this video!
@javiersantos07
@javiersantos07 2 жыл бұрын
Nice tutorial! I'll definitely save it for when I need to work with 2D physics. Hope your channel grows! :D
@nataliadelgado7539
@nataliadelgado7539 Жыл бұрын
Happy Birthday to you Bro! You got your kindness from Mum, intelligence from Dad, and sense of humor from me, so be grateful!
@luiz_esf
@luiz_esf Жыл бұрын
Thank you, this is indeed helpful
@krishgamer620
@krishgamer620 Жыл бұрын
utilised and enjoyed wNice tutoriallst increasing in value.
@h1_355
@h1_355 Жыл бұрын
TNice tutorials comnt from you is legendary. Uncomplicated like your video!!!
@goldduck924
@goldduck924 Жыл бұрын
production. Thanks again!
@df_br7161
@df_br7161 Жыл бұрын
OMG THANKS SO SO MUCH THIS HELPED!!!
@jossandoval3518
@jossandoval3518 Жыл бұрын
Thanks, really helped
@henridjomamssa6191
@henridjomamssa6191 Жыл бұрын
TNice tutorials tutorial was worth it, I understood everytNice tutorialng now
@beerusfan2069
@beerusfan2069 Жыл бұрын
The quality of this video perfect, Plugin works btw ⚡️❤️
@martin-mf2bb
@martin-mf2bb Жыл бұрын
Hello, it worked, thank you so much!
@bodowhealth6931
@bodowhealth6931 Жыл бұрын
Thank you SO much!
@dontforgetthegame
@dontforgetthegame 2 жыл бұрын
Really clear, thanks
@hitman59282
@hitman59282 Жыл бұрын
the tone and control of ur voice says "I know my sNice tutorialt!". Good stuff buddy.
@dynamic_V
@dynamic_V 11 ай бұрын
please make more unity tutorials. tq so much for the amazing content
@microlinscruzdasalmas4416
@microlinscruzdasalmas4416 Жыл бұрын
works PERFECTLY!
@anthonyyc1135
@anthonyyc1135 Жыл бұрын
need the other half of the video!
@alexandernassar6619
@alexandernassar6619 Жыл бұрын
Thank you so much!
@tgsnicholas8817
@tgsnicholas8817 2 жыл бұрын
Found this through Reddit, thx for your amazing work, dude!
@fmproductions913
@fmproductions913 2 жыл бұрын
Great tutorial! I have to disagree with the velocity setting parameters though. Usually, you'd want to not include Time.deltaTime here since you overwrite a velocity that is already accounted for being applied per second. If deltaTime is included, the actual speed of the character will change depending on the fixedDeltaTime value.
@GAMEGLiTcHDevelopment
@GAMEGLiTcHDevelopment 2 жыл бұрын
Yeah everyone is pointing that out. Its something I overlooked when testing the Rigidbody movements. Im going to add it to the pinned comment.
@en8648
@en8648 Жыл бұрын
Thank you that’s really helpful video
@jorgeliepold9488
@jorgeliepold9488 Жыл бұрын
It works! Thanks a lot.
@alfredodeleon307
@alfredodeleon307 Жыл бұрын
Thx .Nice easy beginners guide. helped plenty!
@viifeliciano
@viifeliciano Жыл бұрын
nice its actually working, im suprised
@mateogualotuna2715
@mateogualotuna2715 Жыл бұрын
nice functional good working easy install thanks
@roysuryo2932
@roysuryo2932 Жыл бұрын
ITS REALLY WORKED LOL THANK YOU DUDE
@mamuko2749
@mamuko2749 Жыл бұрын
future! Great tutorial and wholeso community! Stay safe in these tis and keep your heads up! Do what you want that inspires you,
@n90fysk7
@n90fysk7 Жыл бұрын
This was just awesome! Thanks a lot!
@parsa26
@parsa26 Жыл бұрын
please make more in depth tutorial like this about other game dev stuff !!
@hoangphuongphuyen2705
@hoangphuongphuyen2705 Жыл бұрын
I basically know everytNice tutorialng there is to know about soft soft but I still watched tNice tutorials through just because of how good you explained
@sharkfox9907
@sharkfox9907 Жыл бұрын
it worked. Thankss sooooo much.
@meionoob1362
@meionoob1362 Жыл бұрын
I was surprised how understandable tNice tutorials tutorial is, thanks!
@randomuser4178
@randomuser4178 2 жыл бұрын
Great video, lots of detail.
@vanntheany5553
@vanntheany5553 Жыл бұрын
watch more and learn more your are great thanks.
@ogunleyeoluwafemi2334
@ogunleyeoluwafemi2334 Жыл бұрын
you are so helfull man god bless you love from india
Why Does Celeste Feel So Good to Play?
17:34
Game Maker's Toolkit
Рет қаралды 2,6 МЛН
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Two GPT-4os interacting and singing
5:55
OpenAI
Рет қаралды 1,5 МЛН
Mojang just changed Pistons forever. And people hate it.
4:06
Phoenix SC
Рет қаралды 172 М.
How to make a good platforming character (Developing 6)
14:50
Game Maker's Toolkit
Рет қаралды 408 М.
Improve Your Platformer with Forces | Examples in Unity
7:01
Dawnosaur
Рет қаралды 162 М.
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 147 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,3 МЛН
Improve your Platformer’s Jump (and Wall Jump) | Unity
8:12
4 Ways to Code 2D Player Movement in Unity (You SHOULD know these!)
16:24
Lost Relic Games
Рет қаралды 171 М.
Code Class - Build your own State Machines!
36:42
AdamCYounis
Рет қаралды 30 М.
Secrets to a Great Platformer Character with Unity
3:11
Dawnosaur
Рет қаралды 52 М.
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28