How to move a player in Unity 3D

preview_player
Показать описание
Learn how you to move a player in Unity 3D, with a few lines of code. In here you'll learn how to make an object and move it around with the keyboard. We'll also make the camera follow it.

---
Рекомендации по теме
Комментарии
Автор

Hi, is ther a 3D object in unity to which I can aplay permanent magnet properties?
Or if ther is a pre-coded script for it?
So then 2 magnets can react one to each other like in real world.

juliocesardemoraesbarros
Автор

This was a fantastic video! Excellent format, excellent description and tempo for teaching what, when and why.

sketchd
Автор

Thank you so much. Please keep doing Unity videos, it is hard to find well explained videos and even harder to find videos where the code is explained in detail. Greetings from Mexico, please keep it

daviddeyta
Автор

Immediately subscribed! Thank you for taking the time to explain each piece of the code! Very very helpful!

victoriaanderson
Автор

Wow, thanks! I've had a hard time following tutorials for c# in unity 3d, and this video explained everything in a clear and concise way! Do you think you could make a full tutorial/series of videos for learning c# in unity 3d?

dragonstar
Автор

Thanks so much for this tutorial!! It actually worked for me and now I can use this same code for my other 3d video games!!!!

iLosttheGAME
Автор

BRO THANKS SO MUSH WITHOUT YOU I WAS NOT DOING GAME

kamalbarakat
Автор

@Jeremy Morgan I am beginner game developer from India, I have some issue which I am unable to resolve, Could you help me in that, these issues are regarding the multiplayer.
Thnaks

YashasviBhardwaj-sdrj
Автор

Reviewers are asking for a public ( or any) method of speed control. But this is probably not possible using this code?

animationsarehere
Автор

I had one problem with it when i saved it on unity it said it had no float for GetAxis how do i fix that. Thank you.

kingtraybake
Автор

Hello! this video is so useful for my game I followed all of the instruction but I have a little problem here. So normally, the WASD is supposed to be normal but, mine is inverted [all of the button is reversed] can anyone help me please?

Nopqi
Автор

there is a better way to make the camera follow the player that is to make the camera a child of the player but you need to put it in a postition you like

ski_kid
Автор

I copied the first part line for line no typos but it dosent work idk whats wrong with my unity

JuiceeBoxTVV
Автор

what do you press to make the cube move?

leochannel
Автор

Okay, but what is the reapon to set input properties public, and how to increase speed with one variable named speed? how to remove sliding effect, how to use physics with it? and how to switch animations also, if we have free camera how we set the direction depending on camera rotation so cube always move from the camera if we hit forward button? how to make camera collision with walls so you won't have ability to see through them and etc

GamerIntusiasm
Автор

amazing
sir can we just add camer a to the player and set its postition 3rd person instead of writing a script for it?

_shahbaz_awan_
Автор

There is some weird stuff going on with mine. When I press up and down it moves my character left and right and vice versa. Do you know of a way to fix this? Good tutorial though.

drguineapig
Автор

hoping this is good
Edit: Unity keeps saying there is a compiler error no matter what i do

GuideGrid
Автор

Says “vector 3 does not contain a definition for foward”😭

_-VIS-_
Автор

Its 2023 why do you teach people the Old input system, rather than the New Input system that is so much better in performance and in scalability

LuzuVlogsGamer