Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Make a Mario Kart style racing game in Unity 6
Rating: 4.4 out of 5(37 ratings)
538 students

Make a Mario Kart style racing game in Unity 6

Professional game design in Unity 6
Created byPete Jepson
Last updated 5/2025
English
English [Auto],

What you'll learn

  • Master Unity 6
  • Create a Mario Kart style racing game
  • Write your own car controller scripts
  • Create a complete game
  • Learn level design

Course content

11 sections107 lectures7h 36m total length
  • Introduction1:42

    Learn to build a Mario Kart style racing game in Unity six by coding racing karts, items, and three cartoony tracks with spline design and local 2-4 player multiplayer.

  • Course structure1:50
  • Create a project2:03

    Install Unity Hub and Unity LTS, then create a project named Wacky Monster Carts. Open Package Manager to install Cinemachine, Input System, ProBuilder, Splines, and the samples to build roads.

  • Download project assets0:25
  • Input actions5:03

    Create a drive action map in Unity's input system with accelerate and brake, and steering as a vector2 from gamepad or keyboard arrows and wasd, then save the asset.

  • Kart structure3:11

    Build a sandbox driving scene with a player kart, input and action assets, wheel colliders, and a suspension-driven physics system, while Cinemachine cameras follow and orbit the car.

  • Input Script4:00

    Implement a Unity input script to drive a car, exposing gas, brake, and steering (Vector2), and map gamepad and keyboard inputs for acceleration and steering.

  • Drive forward8:06

    Drive forward by applying acceleration via motor torque and braking via brake torque on wheel colliders, syncing wheel meshes, and adding downforce to stabilize the kart at speed.

  • Steering2:00

    Set a max steering angle of 30 degrees, pass the steering value to the drive function, and steer only the two front wheels via wheel colliders for responsive Unity steering.

  • Suspension and brake assist6:07

    Tune suspension with spring, damper, and target position to control bounce and stability, then implement brake assist in code to freeze rotation and prevent flips on flat surfaces.

  • Flying in the air4:20

    Apply downforce only when the rear wheels are grounded, detect ground with wheel colliders, and freeze rigidbody rotation briefly via a coroutine to enable a stable glide off ramps.

  • Reverse2:50

    Create a reverse input action named reverse, bind it to gamepad button north and keyboard R, toggle a reverse flag to switch thrust, and switch the Cinemachine camera to follow.

  • Kart reset1:47

    Add reset input in unity's input system to flip the kart back to its rotation. Bind to d-pad up and the t key, setting transform.rotation to a new quaternion 0000.

  • Kart sounds7:51

    Create a cart sounds system in Unity with start, idle, driving, drift, and reverse audio sources; compute cart speed from rigidbody velocity and driving volume/pitch via lerp and sine oscillation.

  • Brake to a stop6:53

    Use the Unity input system to trigger brake to a stop and manage driving, drift, and reverse sound volumes as cart speed changes, while controlling rear tire smoke with script.

  • Brake lights1:29

    Toggle tail lights emission tied to brake input in a Unity Mario Kart style game, turning emission on when braking and off when released.

  • Drifting8:43

    Enable drifting in a Mario Kart racing game in Unity by mapping drift input, adjusting rigidbody angular velocity, tweaking rear wheel friction curves, and adding drift sounds and smoke effects.

  • Setting gears9:42

    Add a UI speed display, convert cart velocity to mph, and implement a multi-gear system with torque thresholds to boost top speed, plus center-of-mass adjustments for stability.

Requirements

  • You will need a computer capable of running Unity 6
  • No game design or coding experience needed as I take you through it step by step

Description

Welcome to my new course where we will be Making a Mario Kart style racing game in Unity 6.

I will take you step by step through the process of creating a complete game from start to finish.

Beginner to Intermediate level coding

We write our own code throughout the game and look in detail at writing code  specifically for racing cars and karts. This also covers computer controlled AI karts that challenge you to a competitive race.

What we create

The course features three cartoony race tracks. The first track we create ourselves from scratch, covering track design using Unity splines. Asset layout and animated obstacles.

The karts have special items such as boxing gloves so you can punch the opponents out of the way when they are too close. Missiles so you can blow up karts that are up ahead of you. Cartoon bombs that can blow up karts behind you and oil splats that will cause opponents to spin out and lose control.

Single player and local multiplayer

We use the Unity Input System, so you can control the kart using keyboard and mouse, or gamepad. We create a local multiplayer mode for 2, 3 or 4 local players. Note that this isn't online multiplayer, but local multiplayer where up to 4 players can use the same computer to race against each other.

Develop game design and coding skills

By the end of this course you will have developed skills and knowledge to make your own awesome driving games and have a completed game for your portfolio of work. The end product is yours and you can share it with friends or even upload online.

You don't need any previous game design experience as I take you through it step by step. You can of course continue to add your own ideas, tracks, cars and assets to this project. If you get stuck just drop me a message in the Q & A section and I'll help you get everything sorted.

Why not enrol today and I look forward to seeing you in the course.

Who this course is for:

  • This course is for people wanting to make their own games in Unity 6
  • You should have a passion for game design
  • This features level design and coding, so is suitable for all people interested in game design