Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Unity Character Controller: Code Smooth 3D Player Movement
New
19 students

Unity Character Controller: Code Smooth 3D Player Movement

Make your player run, jump, tackle slopes and ride moving platforms with a Rigidbody controller in Unity 6 and C#
Created byGameDev.tv Team
Last updated 11/2026
English

What you'll learn

  • Understand every part of a 3D controller, so you can change it with confidence.
  • Write a 3D character controller from the ground up in C#, ready to extend.
  • Handle slopes and ramps properly with a Rigidbody-based controller in Unity 6.
  • Code custom gravity that keeps your character glued to slopes and stops floaty jumps.
  • Add coyote time and a variable jump height for jumps that feel fair and responsive.
  • Import a rigged 3D character, set up prefabs and hook up pre-made animations.
  • Build sliding and spinning platforms your character rides just by standing on them.
  • Set up a Cinemachine orbit camera that follows your player smoothly.

Course content

5 sections • 39 lectures • 3h 44m total length
  • Welcome to the course1:28

    The introductory video for this course

  • Project Setup2:47

    Get the Unity project setup and have the code editor linked and Cinemachine installed

  • Rigidbody Setup4:22

    Setup a player object with a rigidbody componenet

  • Basic Movement16:47

    Code a simple movement script

  • Importing Assets3:26

    Import KayKit assets into the project

  • Platform Prefab8:02

    Setup a platform with colliders and turn it into a prefab

  • Ramp Prefab4:58

    Add a ramp gameobject to the scene and set it up as a prefab

  • Adding a Skybox2:48

    Add a skybox asset to our Unity account and it up in our scene

Requirements

  • Basic C# knowledge, such as variables, methods and if statements
  • Unity 6 installed and itch io access to download the free character, level and skybox assets
  • No 3D modelling or animation skills needed

Description

Want to understand exactly how a great character controller works, from smooth slopes and fair jumps to riding a moving platform?

Character controllers can look simple until the edge cases start piling up. Built one piece at a time, with every step explained, they're far more manageable than they seem.

You'll build a Rigidbody-based controller from the ground up in Unity 6 and C#, so you control every part of how your player moves. You'll start with movement, jumping and a Cinemachine orbit camera. Next, you'll bring in a rigged character with animations, tune the game feel with custom gravity, coyote time and drag, and finish with sliding and spinning platforms that carry your player along.

Along the way, you'll work with Rigidbody physics, a Cinemachine orbit camera, coyote time, variable jump height, custom gravity, blend trees, prefabs and animation setup.

All the character, level and skybox assets are included, so there's nothing extra to buy. Your instructor, Gideon, explains the why behind every step, so when your game needs a change, you'll already know where in the code to make it. And if you get stuck, our teaching assistants are on hand in the Q&A.

Want to take it further? The controller is built to be extended, so it makes a great base for new abilities and systems of your own.

By the end, you'll have a tight character controller you understand inside out, and one you can build on in your next game.

Ready to see how great movement really works? Hit enrol and let's get started.

Who this course is for:

  • Great if you're a Unity developer with some C# and want movement that feels great to play
  • Also perfect if you're making a 3D platformer with slopes, jumps and moving platforms
  • And fab if you're a developer and want a solid, expandable controller to build your own games on