How to move objects in Unity (3 methods)

  Рет қаралды 52,827

Game Dev Beginner

Game Dev Beginner

Күн бұрын

Пікірлер: 52
@MyPing0
@MyPing0 2 жыл бұрын
Dude I wish I could just tell the whole world about your videos. Don't stop making them I know you will blow up one day! They are so informative, concise, and cover all basis. I'm really starting to get into Unity and I want to make my own games as a hobby and your videos are perfect for me to learn about various topics. They are just so well made that it hurts to see you're not the biggest unity youtuber out there. I wish you best of luck in your youtube career, thanks for always making such interesting and helpful videos.
@GameDevBeginner
@GameDevBeginner 2 жыл бұрын
Thanks so much! I'm really happy to hear the videos are helping you. Good luck with whatever you make!
@janashraf1545
@janashraf1545 8 ай бұрын
Most underrated unity tutorial KZbin channel I have ever seen
@Tetribution
@Tetribution 2 жыл бұрын
I love this channel, I just learned to work on unity as a gamedev - and all of this is super great. Please don't stop uploading!
@markorossie9296
@markorossie9296 2 ай бұрын
This was clean, simple to follow, useful. Thanks.
@onnibools
@onnibools 5 ай бұрын
Yo thanks so much! This really helped me as a beginner!
@alexandertrembach7415
@alexandertrembach7415 Жыл бұрын
Thanks for this video, simple explanation of functions and a little bit of math, makes repeating this examples very easy, and more than that I am understand what and why I'm doing
@KhonakdariDev-ks5bx
@KhonakdariDev-ks5bx 7 ай бұрын
thank you very much . I stopped somewhere، and you saved me.
@mr-pr0cesss
@mr-pr0cesss Жыл бұрын
Fantastic video, First I read the article about movement in unity in your site, It was amazing and I fully understand it and then saw your youtube channel. Man what you are doing is awesome! hope you get more subs soon and good luck.
@jbot2288
@jbot2288 Жыл бұрын
same!
@daesereg2657
@daesereg2657 2 жыл бұрын
I just found out about your channel today. From your blog. This, and your blog are amazing, and they have helped me move on with my projects! You are amazing! Thank you!
@GameDevBeginner
@GameDevBeginner 2 жыл бұрын
Thank you!
@andrewdoesit.
@andrewdoesit. 7 ай бұрын
That was the best video ever Thank you such a great explanation
@FrotteeVDH
@FrotteeVDH Жыл бұрын
I'm in the process of watching all of your videos - this is high quality stuff, thanks for creating these. Btw: I saw what you did there with the normali(z/s)ed spelling. :)
@luiscerda4031
@luiscerda4031 Жыл бұрын
Thank you so much! You are a great teacher.
@soufianebenamer7585
@soufianebenamer7585 2 жыл бұрын
What a great explaination , thank you for this amazing tutorial
@naimmop4481
@naimmop4481 Жыл бұрын
Great Informative video! I've been struggling with trying to understand why different tutorials have different ways of moving objects. This video really helped me learn what unity is and has been helping me get out of tutorial hell
@St3fa9s
@St3fa9s 10 ай бұрын
Love these types of videos! :)
@HOSTRASOKYRA
@HOSTRASOKYRA 2 жыл бұрын
This, and your blog are amazing
@GameDevBeginner
@GameDevBeginner 2 жыл бұрын
Thanks so much! Glad you like the blog too.
@regys9521
@regys9521 Жыл бұрын
Outstanding content to say the least, thank you very much
@runrajrun
@runrajrun 2 жыл бұрын
Amazing video dude!
@sxsignal
@sxsignal 7 ай бұрын
@GameDevBeginner great explanation. I'm actually trying to read in data from a data file of a drone, whose time step in recording is .02s, so parsing the data and then in a coroutine reading a line in a while loop. While it works, the timing is a tad slower then realtime. I'm using the transform.position to lerp (and slerp with rotation roll/pitch/yaw). since physics is roughly .016 should I move to fixed update vs a coroutine? (I ingest all the data beforehand into an array to eliminate IO file read calls, which are expensive in time)
@GameDevBeginner
@GameDevBeginner 7 ай бұрын
Yeah, Fixed Update might be worth a try since you can enable interpolation on the rigidbody which should smooth out the movement. Make sure to change the physics step to match the recording time step
@halfbakedproductions7887
@halfbakedproductions7887 Жыл бұрын
The problem I found with Vector3.Lerp and dividing the elapsed time by the movement duration is that the speed is inconsistent. Move a long distance and the object will slide very quickly, move a shorter one and it'll move at a walking pace. If you want to move everywhere at the same speed then you want to be using something else.
@GameDevBeginner
@GameDevBeginner Жыл бұрын
Absolutely! Lerp works well when time is the factor you want to control, not speed. Otherwise Move Towards, or Translate are better.
@misal-isahabe5281
@misal-isahabe5281 7 ай бұрын
Thanks
@govindvijay
@govindvijay Жыл бұрын
my object moves opposite direction , using negative x axis in transform postion ,object moves towards right instead of left side
@m_rizaal
@m_rizaal 8 ай бұрын
Please help I have been using transform for my movement and its an endless runner but the movement looks really bumpy and it clearly shows that its travelling each unit, its not smooth at all I tried rigidbody and its way much smoother but I really dont want physics Moreover rigidbody lessens the speed of my game when i use post processing gloom If anyone can then please give a solution to movement and a solution to optimise post processing will also be appreciated
@GameDevBeginner
@GameDevBeginner 8 ай бұрын
Assuming you're already scaling by delta time and not doing anything else that might cause jerky movement, have you tried building the game? Sometimes movement that looks jerky in the editor is smooth in the standalone player.
@m_rizaal
@m_rizaal 8 ай бұрын
@@GameDevBeginner No I havent yet build it, I will check if its smooth in my phone Thanks for such a quick response! And is there any way to optimise post processing cuz it visually decreases the speed of my rigidbody movement when i use gloom
@Jose_diazlife
@Jose_diazlife Жыл бұрын
Thank u so much
@JollyJoker777
@JollyJoker777 Жыл бұрын
Thanks for the helpful video! What color theme are you using for Visual Studio?
@GameDevBeginner
@GameDevBeginner Жыл бұрын
Thank you! It's Gruvbox
@arthurianacademy1715
@arthurianacademy1715 Жыл бұрын
the bolt setp is not getting install in my 2019 version what to do
@userbunny14
@userbunny14 Ай бұрын
soo there's no hotkey to just hold, click the object and free move it like in blender?
@miguelandradebr
@miguelandradebr Жыл бұрын
Hello Very nice! Its possible to download the samples? Thanks
@Baron-rr4bt
@Baron-rr4bt 2 жыл бұрын
I'm curious. What tool is used to draw the mathematical functions in the video. Can you share it with me?😘
@GameDevBeginner
@GameDevBeginner 2 жыл бұрын
I use Pixelmator Pro & Procreate to make the artwork in my videos
@Baron-rr4bt
@Baron-rr4bt 2 жыл бұрын
@@GameDevBeginner Thanks,you are so good.😘
@heavensfield494
@heavensfield494 Жыл бұрын
I have a question though, what if I want to move/use the rigidbody with a specific condition (key press for example). Do i have to always use a bool to check if the key is press and then change it in the fixUpdate or is there any other way. I tried recreate my own gravity/ rigidbody but now i ended up with lots of "seemingly unecessary" booleans. Anyone?
@GameDevBeginner
@GameDevBeginner Жыл бұрын
Generally, yes. If you're applying physics movement over time, then it should be in Fixed Update, and if you're checking for input with the old Input Manager, then that needs to be in Update, otherwise you will probably miss inputs. A different way to do it might be to share movement values between the two with a Vector3 instead of a bool.
@AlisdairAlbert
@AlisdairAlbert Жыл бұрын
I don't know .. I tried this vid and many others .. but unity keep showing error and I can't even move a box... it even shows "transform" or "time" as undefined context... 3 days am trying to figure this out ..
@AbachiriProduction
@AbachiriProduction 2 жыл бұрын
hi im currently using transform component u cen see the code in my last video . but now i want to use the object axies not the world axies, i f u can help . if i found what i want in some other place i will post in in my channel .
@AbachiriProduction
@AbachiriProduction 2 жыл бұрын
i found the solution b.transform.position = a.transform.position + (a.transform.forward * 0.5f) + (a.transform.up * 0.5f) +(a.transform.right * 0.5f) ; u can change 0.5f to the value you want . i will do a videio about it next few days folow me if you wana know more about it and about my game .
@huhu....
@huhu.... Жыл бұрын
nice!!!!
@trillobit3sIndieGames
@trillobit3sIndieGames Жыл бұрын
otimo video
@MyPing0
@MyPing0 2 жыл бұрын
Came back to this video to request a video topic! Any chance you can make one about scriptable objects? They've been confusing me for so long, I mean I've never tried to do anything with them (maybe cause I don't need to yet) but I feel like they are really good to know and use when appropriate, every tutorial I've watched about them though seems hard to follow/understand.
@GameDevBeginner
@GameDevBeginner 2 жыл бұрын
The video I'm working on now touches on scriptable objects, but I might do an expanded video as well in the future.
@MyPing0
@MyPing0 2 жыл бұрын
@@GameDevBeginner awesome, can't wait for it
@Hex-.
@Hex-. 10 ай бұрын
litteraly nothing helps i just need to know how to move an object i love the part when u explain
4 Ways to MOVE (Pros and Cons) in Unity
8:01
Sasquatch B Studios
Рет қаралды 11 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
How to write a Game Design Document
12:23
Game Dev Beginner
Рет қаралды 10 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
10 Things You NEED to Be Doing in Unity
11:40
Tarodev
Рет қаралды 137 М.
How to start making a game
15:39
Game Dev Beginner
Рет қаралды 4,9 М.
The 5 Stages of Learning Blender
3:14
Artin Azarnejad
Рет қаралды 281 М.
10 Minutes vs. 10 Years of Animation
19:29
Isto Inc.
Рет қаралды 1,3 МЛН
How to jump in Unity (with or without physics)
16:09
Game Dev Beginner
Рет қаралды 49 М.
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 681 М.