A Unity-based third-person character controller created entirely from scratch without relying on Unity's built-in character controller. This project is designed to provide developers with a foundational, fully customizable third-person control system for 3D games. It demonstrates how to build essential movement mechanics using only Unity's core components and C# scripting. Whether you're building an action-adventure game, an RPG, or any 3D project requiring character movement, this controller serves as a starting point for learning and development.
- Third-Person Movement: Smooth character movement using standard input controls.
- Camera Control: Cinemachine is used to control camera.
- SimplePlayerControllerExample/: Contains all project resources such as scripts, prefabs, and scenes.
- SimplePlayerControllerExample/Scripts/: Includes C# scripts for character and camera controls.
- SimplePlayerControllerExample/Scenes/: Pre-configured demo scene showcasing the controller in action.
- Unity: Version 2021.3.21f1 LTS or later. It is also compatible with Unity version 6000.0 or newer.
- Make sure to import Cinemachine and New Input System from Unity Registry.
- Familiarity with Unity and C# scripting is helpful but not mandatory.
- Clone the repository:
git clone https://github.com/PradeepGameDev/SimpleThirdPersonController.git
- Download Unity package SimpleThirdPersonController inside Assets folder.
- Launch Unity Hub.
- Click Open and select the folder where you cloned the repository.
- Create new or Open any existing project and import downloaded package from Assets->Import Package->Custom Package.
- Open the demo scene from the
Scenes
folder. - Press the Play button to see the third-person controller in action.
- Use the default WASD/arrow keys for movement.
- Rotate the camera using the mouse.
Note: Make sure the ground layer and player's layer is not same. Because it can cause IsGrounded to be true always.
- Modify Unity's Input Manager to remap controls as needed.
- Add your own animations, abilities, or interactions to expand functionality.
This project is licensed under the MIT License - see the LICENSE.md file for details.. You are free to use, modify, and distribute this project as per the terms of the license.
This project uses the following third-party assets to enhance the visuals and overall experience:
- Ninja Character Model: A character model used for the player avatar. Available at Unity Asset Store
- Starter Assets Environment: A prebuilt environment from Unityโs Starter Assets package, providing a simple and visually appealing scene.
Note: These assets are for demonstration purposes and are subject to their respective licenses. Ensure you comply with the asset terms when using them in your own projects.