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