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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to implement 2D character movement and jumping in Unity using Rigidbody2D in this comprehensive 34-minute tutorial. Gain an introduction to C# programming while creating a PlayerController script to handle character movement. Follow along as the instructor guides you through setting up Unity, creating sprites, adding Rigidbody2D and colliders, and implementing essential C# concepts. Master techniques for player input, using AddForce for movement and jumping, implementing ground checks, preventing rotation, and handling trigger events. By the end of this tutorial, you'll have a solid foundation in 2D character control in Unity, complete with double jump prevention and final Rigidbody2D adjustments.

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.