3D Platformer in Unity - Character Controller Tutorial

Опубликовано: 12 Март 2026
на канале: Kozmobot Games
2,233
20

In this video, you will learn how to move your character with a character controller in Unity, but with New Input System. This is a different method because when you already have this kind of input system, you can easily manipulate and add new things. This time, you need to make your player move up the slopes and not increase any weight over gravity.

The full script is available here: http://github.com/kozmobotgames/Chara...

Character Controller is a component that makes a lot easier for your player to navigate up the slopes and makes the movement easier, especially if you have a player model. But that is not the only thing you should do. The character controller is still not part of the initial script, whenever you see the use of rigidbody in your player script, you need to change it.

The fastest and easiest way is to apply gravity, first define it as private float gravity and set it to 9.81, but in Unity it should be negative, because of inverted axes. After gravity, you need the velocity, because there is no predefined velocity in the character controller. It is important because you want your player to jump.

This tutorial is a perfect entry for future game developers who had a harder time picking the right code. This code, finally, can be optimized for moving the character by using character controller in a 3D Unity project.

Sorry for crackling audio, that is my sound card problem that I have been having for more than a year...

Support the Creator of Kozmobot on the social networks!

CHECK OUT MY WEBSITE: http://kozmobot.com

INSTAGRAM:   / kozmobot.channel  

TIKTOK:   / kozmobot.channel  

MUSIC: My music. It only appears at the end of the video.