How to Create a Top Down Movement Character Controller in Unity | Scripting Tutorial

Published: 17 April 2020
on channel: Broken Knights Games
75,818
1.5k

In this video I demonstrate how to create a top-down character controller movement script in Unity which take into account the rotation offset of the main camera. This video also demonstrates how to make a game object rotate towards the mouse cursor on the screen, as is commonly seen in top down shooters. Learn some basic vector and rotation operations along with a simple and practical physics raycast example in Unity.

Technology Used
Unity 3D Engine 2019.3
Git
Visual Studio 2019
.Net Scripting in C#

Everything shown in the video can be downloaded from my Github repository so you can follow along, or reference my approach to creating a top down character controller component.
Github Repository Link: https://github.com/Srfigie/Unity-3d-T...
New Input System Tutorial:    • Local Co-op in Unity using the New In...  

Time Codes:
00:54 Sample Scene Overview
02:05 Input Handler Script Overview
03:02 Character Movement
06:00 Move Relative to camera rotation
10:38 Rotate Towards Movement Vector
15:03 Follow Mouse Rotation


Broken Knights Games:
Website: https://brokenknights.com
Twitter:   / broken_knights  
Instagram:   / brokenknightsgames  







► Music Credit: LAKEY INSPIRED
Track Name: "Better Days"
Music By: LAKEY INSPIRED @   / lakeyinspired  
Original upload HERE - https://www.youtube.com/watch?v=RXLzv...
Official "LAKEY INSPIRED" YouTube Channel HERE - https://www.youtube.com/channel/UCOmy...
License for commercial use: Creative Commons Attribution 3.0 Unported "Share Alike" (CC BY-SA 3.0) License.
Full License HERE - https://creativecommons.org/licenses/...
Music promoted by NCM https://goo.gl/fh3rEJ


On this page of the site you can watch the video online How to Create a Top Down Movement Character Controller in Unity | Scripting Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Broken Knights Games 17 April 2020, share the link with friends and acquaintances, this video has already been watched 75,818 times on youtube and it was liked by 1.5 thousand viewers. Enjoy your viewing!