Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

2D Character Movement in Unity - Rigidbody2D Movement and Jumping in Unity - Unity Tutorial

Dani Krossing via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This introductory tutorial teaches how to create a 2D character controller in Unity with C#, including player input, Rigidbody2D movement and jumping, ground detection, and double-jump prevention.

Syllabus

- Introduction.
- Getting Unity ready!
- Creating our Sprites.
- Adding Rigidbody2D and Colliders.
- Creating our C# PlayerController Script.
- I have a C# course!
- Understanding what is in our Script.
- Fields, Properties, and Methods in C#.
- Using, Classes and MonoBehaviour in C#.
- Start, Update, and FixedUpdate in C#.
- The Void keyword in our methods?
- Creating our Fields.
- Assigning values to our Fields.
- How to get player input.
- Moving our player using AddForce.
- Jumping using AddForce.
- Checking if player is grounded.
- Adding a ground check Trigger.
- Preventing player rotation.
- OnTriggerEnter2D in C#.
- How to add tags to game objects.
- OnTriggerExit2D in C#.
- Prevent player double jumping.
- Final adjustment to our Rigidbody2D.
- Thanks for watching!

Taught by

Dani Krossing

Reviews

Start your review of 2D Character Movement in Unity - Rigidbody2D Movement and Jumping in Unity - Unity Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.