Uploaded December 2020 | Updated September 2026, 2 weeks ago
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 - youtu.be/gs7y2b0xthU
If you prefer written instructions you can find a link to the text version here - ketra-games.com/2020/12/rotating-a-character-in-the-direction-of-movement-unity-game-tutorial.html
Final Script can be copied from here - dotnetfiddle.net/0xWBCS
Support us on Patreon - patreon.com/ketragames
or if you'd like to buy us a coffee - 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
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 - youtu.be/gs7y2b0xthU
If you prefer written instructions you can find a link to the text version here - ketra-games.com/2020/12/rotating-a-character-in-the-direction-of-movement-unity-game-tutorial.html
Final Script can be copied from here - dotnetfiddle.net/0xWBCS
Support us on Patreon - patreon.com/ketragames
or if you'd like to buy us a coffee - 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










