PLAYER MOVEMENT IN UNITY - HOW TO MOVE GAMEOBJECTS WITH TOUCH INPUT

Описание к видео PLAYER MOVEMENT IN UNITY - HOW TO MOVE GAMEOBJECTS WITH TOUCH INPUT

PLAYER MOVEMENT IN UNITY - HOW TO MOVE GAMEOBJECTS WITH TOUCH INPUT

In this NEW Unity tutorial, we are going to learn how to move a player in Unity 2D by touching the screen of a mobile device. We will use the Touch feature in Unity to understand what the user wants to do and move the GameObject along with the finger of the user.

To do this, we are going to create a c# script to get the Input of the user and then move the player by changing its position. We will analyze it in 3 phases: Touch Began to calculate the difference between the object and our finger, Touch Moved to move the object along the finger and Touch End to stop the object.

For this Unity tutorial we rely on a previous video where we reviewed the physics in Unity:

✅ HOW TO CREATE PHYSICS IN UNITY - Rigidbody And Colliders in Unity
   • HOW TO CREATE PHYSICS IN UNITY - Rigi...  

I'll explain in detail how to do this and show you all the tips and tricks I know in Unity!!!

Have a nice day Unity developer!

❗️KEEP LEARNING❗️
   • Unity Tutorials - Free Course  

Комментарии

Информация по комментариям в разработке