A Perfect Jump in Unity - A Complete Guide

Опубликовано: 28 Октябрь 2024
на канале: Press Start
76,518
2.2k

In this video we show you how to setup perfect Mario-like jumping in Unity.
SUBSCRIBE: https://bit.ly/2Js78lE
============
SUPPORT:   / pressstartclub  

In this video, we cover:
0:40 - Using a Ground Layer to detect if player is touching the ground
1:23 - Understanding How RayCasts work
2:15 - Applying a Physics2D.Raycast to check for Ground Collision
3:16 - Testing and Tweaking Ground Collision
3:55 - Using Gizmos.DrawLine
5:10 - Applying a vertical force for jump
6:25 - Adding Input Control
7:25 - Explaining Fall Multiplier
8:00 - Modifying Gravity and Physics
9:30 - Testing out our perfect jump
10:00 - Button Delay
10:45 - Adding a Jump Delay
11:50 - Adding RayCasts to both sides of our collider
13:20 - Setting up a Jump Squeeze Animation
14:55 - Applying the Jump Squeeze for landing
15:42 - Falling Animation
16:26 - Final Product

PART 1: Animation
   • 2D Character Animation in Unity [pt 1...  

PART 2: Running
   • Super Mario - Running Tutorial in Unity  

"Better Jumping in Unity With Four Lines of Code" by Board to Bits:
   • Better Jumping in Unity With Four Lin...  

COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2019...

MORE TUTORIALS:
https://pressstart.vip/unity-tutorials