Rotating a Character in the Direction of Movement (Unity Tutorial)

Опубликовано: 19 Декабрь 2020
на канале: Ketra Games
148,064
3.3k

In this Unity game development tutorial we're going to look at how we can rotate an object so that it faces the direction it’s moving in.

If you're looking for a 2D version you can find it here -    • Rotating in the Direction of Movement...  

If you prefer written instructions you can find a link to the text version here - https://www.ketra-games.com/2020/12/r...

Final Script can be copied from here - https://dotnetfiddle.net/0xWBCS

Support us on Patreon -   / ketragames  
or if you'd like to buy us a coffee - https://ko-fi.com/ketragames

00:00 - Introduction
00:16 - Setting up the scene
02:15 - Creating a script to make the character move
04:29 - Changing the forward direction of the Character's Transform to face the direction of movement
05:21 - Using Quaternion.RotateTowards to smoothly change the rotation of the character


Смотрите видео Rotating a Character in the Direction of Movement (Unity Tutorial) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Ketra Games 19 Декабрь 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 148,064 раз и оно понравилось 3.3 тысяч посетителям.