Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

Building a third-person controller in Unity with the new input system

Blog post from LogRocket

Post Details
Company
Date Published
Author
Marian Pekár
Word Count
6,470
Language
-
Hacker News Points
-
Summary

The text provides a comprehensive tutorial on building a third-person controller in Unity using the new Input System package and Cinemachine, focusing on clean architecture and extendability. It guides readers through setting up input handling for different devices, creating a follow camera, and implementing a state machine for player animations such as idle, run, jump, and fall. The tutorial emphasizes the benefits of the new Unity input system, such as an event-based API for improved performance and cross-platform compatibility, and demonstrates the use of design patterns like the state and observer patterns. Additionally, the text offers practical advice on structuring Unity projects, including setting up an Animator for smooth animation transitions and leveraging Cinemachine for advanced camera behaviors, ultimately providing readers with the foundation to extend the controller with additional states and functionalities.