Загрузка...

Genshin Impact Movement in Unity | #16 - Falling

In this video we'll be taking a look on how to start Falling, which happens when Jumping or Exiting the Ground.

This was supposed to only come in the second part of the series but for a few reasons I've decided to add it to the first part.

________________________________________________________

Timestamps:

00:00 What will we be doing?
00:34 Downloading the Falling Animations
01:12 Adding Animations to Unity
01:48 How will Falling work?
02:35 Creating the Falling State
03:04 Caching the Falling State
03:23 Creating the On Trigger Exit Method
03:39 Implementing the On Trigger Exit Method
04:03 Calling the On Trigger Exit Method
04:37 Creating the On Contact With Ground Exited Method
05:37 Transitioning to the Falling State
06:28 Checking for Ground Underneath with a RayCast
10:52 Problem: Obstacles Gap
12:16 Creating the Trigger Collider Data Script
15:08 Adding the Trigger Collider Reference
15:23 Checking for Ground Underneath with OverlapBox
18:36 Setting the Falling Speed Modifier
19:21 Limiting Fall Velocity
24:28 Jump To Fall
27:55 Resetting Velocity
28:29 Creating the "ResetVerticalVelocity" method.
29:42 Resetting Sprint State

________________________________________________________

Useful Links:

● GitHub Repository: https://github.com/Wafflus/unity-genshin-impact-movement-system
● Tutorial Series (Youtube Link): https://www.youtube.com/watch?v=-HCv142Uqhk&list=PL0yxB6cCkoWKuPoh_9dSvdItQENVx7YTW
● Mixamo (Website): https://www.mixamo.com
● Force Modes (Reddit - nothke): https://www.reddit.com/r/Unity3D/comments/psukm1/know_the_difference_between_forcemodes_a_little/
● New Input System (Unity Documentation): https://docs.unity3d.com/Packages/com.unity.inputsystem@1.3/manual/QuickStartGuide.html
● OnTriggerEnter (Unity Documentation): https://docs.unity3d.com/ScriptReference/Collider.OnTriggerEnter.html
● OnTriggerExit (Unity Documentation): https://docs.unity3d.com/ScriptReference/Collider.OnTriggerExit.html
● LayerMask (Unity Documentation): https://docs.unity3d.com/ScriptReference/LayerMask.html
● Layers (Unity Documentation): https://docs.unity3d.com/Manual/Layers.html
● Collider (Unity Documentation): https://docs.unity3d.com/ScriptReference/Collider.html
● Bounds.extents (Unity Documentation): https://docs.unity3d.com/ScriptReference/Bounds-extents.html
● Physics.Raycast (Unity Documentation): https://docs.unity3d.com/ScriptReference/Physics.Raycast.html
● Ray (Unity Documentation): https://docs.unity3d.com/ScriptReference/Ray.html
● BoxCollider (Unity Documentation): https://docs.unity3d.com/Manual/class-BoxCollider.html
● OverlapBox (Unity Documentation): https://docs.unity3d.com/ScriptReference/Physics.OverlapBox.html
● CheckBox (Unity Documentation): https://docs.unity3d.com/ScriptReference/Physics.CheckBox.html
● "virtual" Keyword (C# Documentation): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/virtual
● Discards (C# Documentation): https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discards
● Vector2.zero (Unity Documentation): https://docs.unity3d.com/ScriptReference/Vector2-zero.html
● Rigidbody (Unity Documentation): https://docs.unity3d.com/ScriptReference/Rigidbody.html
● Velocity (Unity Documentation): https://docs.unity3d.com/ScriptReference/Rigidbody-velocity.html
● Serializable (Unity Documentation): https://docs.unity3d.com/ScriptReference/Serializable.html
● SerializeField (Unity Documentation): https://docs.unity3d.com/ScriptReference/SerializeField.html
● Properties (C# Documentation): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties

________________________________________________________

● Subscribe: https://www.youtube.com/c/IndieWafflus?sub_confirmation=1

● Follow me on Twitter: https://twitter.com/IndieWafflus

________________________________________________________

Видео Genshin Impact Movement in Unity | #16 - Falling канала Indie Wafflus
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять