Player Movement using Character Controller(Move, Turn, Jump, Fall) | Unity Game Engine

preview_player
Показать описание
Copy code from here-

Feel free to Like and Share to show support for this channel.
Don't forget to leave a comment if anything comes to mind.
Have a nice day :)

#unity #Movement #CharacterController
Рекомендации по теме
Комментарии
Автор

If you are having a problem where if you jump into a wall or walk into a wall, you just stop and stick to the wall until you stop moving into it. To fix this you have to go to the assets area on unity, right click and go to create > Physic Material, then change the friction of the physic material to Zero, then go to the colliders for all of your walls and in the inspector area, it should say “Physic Material”, set it to the physic material you just made

DARK_AMBIGUOUS
Автор

Great you just helped us in this taamkyou

AIZEN_Official
Автор

Works perfectly. Thanks for this.
Short and clear. Wish there was commentary (personal preference) but ok.👍

videochantel
Автор

i made a jump script like 30 lines long have no idea how you all the movement script with only these lines of code, great job <:

bloggerblogger
Автор

This works great!!! Thanks for sharing!

ErodonTV
Автор

Thank you!! May i use this for demo scene for asset store?

SirTitan
Автор

i have a problem my player go under the floor and just i see half of him hen i start my game

alisinajahani
Автор

How to make shake when hitting ground?

lex-new-nd
Автор

Jump function is not working if the player doesnt move. Any advice?

yagizyuksel
Автор

how do i make movement with a and d
keys

dehnmagnus
Автор

figured out autorun
if(autoRun)
{
* Time.deltaTime);
}

ErodonTV
Автор

Can you post script please i typed it and it has compiler errors

roshan
Автор

Better using Time.fixedDeltaTime that Time.deltaTime

deltaTime making same movement between frames, that is good for consoles if you really need optimalization and you are sure that you will always have same fps, but when you try it on PC with some other running programs (or next generation consoles, hello PlayStation where mayority of backward compatibile games run at 30 fps because of this) you notice laging, because framerate will changing. It looks ok on really powefull PC when you have not much in game, but after more things in game or on cheaper PC it is really visible.

fixedDeltaTime calculate reall time on procesor and don´t care about framerate. It is more power demanding but everything will work smooth.

jankrnac