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

Published: 19 December 2020
on channel: 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


Watch video Rotating a Character in the Direction of Movement (Unity Tutorial) online, duration hours minute second in high quality that is uploaded to the channel Ketra Games 19 December 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 148,064 times and liked it 3.3 thousand visitors.