Rotating a Character in the Direction of Movement (Unity Tutorial) @KetraGames
Rotating a Character in the Direction of Movement (Unity Tutorial)  @KetraGames
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
Rotating a Character in the Direction of Movement (Unity Tutorial)Placing Objects on the Ground (Unity Tip)Stand Back Up! How to Reverse Ragdoll Physics (Unity Tutorial)Using Wind Zones to Make Trees Sway (Unity Tutorial)Fixing Ragdoll Head Sway (Unity Tutorial)How to Make a Sprite Flash | Unity Ping Pong Function ExplainedFix for Unity Intellisense Not Working in Visual Studio (Unity Tutorial)Spawning Health Collectables in Unity | Using Interfaces to Create Flexible Collectable BehavioursHow to Collect Items (Unity Tutorial)Local Transform vs World Transform - Whats the Difference?Procedurally Generating a Perfect MazeShow a Silhouette When Hidden Using URP Renderer Features (Unity Tutorial)
Ketra Games |

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

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER