A custom third person controller implementation not using the default player controller script and not using any animations.
To use:
Method 1: Prefab method
- just add the Player and camera pivot prefabs into your scene.
Method 2: Manual method:
1. Create an empty entity in your scene and call it anything you want (I chose player)
2. Add the following scripts to it:
- Capsule collider (or any collider) for collision handling and set it up correctly
- Character controller
- Third Person controller
Note: the Third person controller class does not need the capsule collider for gravity since it uses custom ray casting to find the ground.
3. Create another empty entity in your scene and call it Camera Pivot (or anything you want)
4. Make the camera a child of this camera pivot and rename it to "FollowCamera" since this is used to find the camera automatically.
5. add the Spring Arm script to your camera pivot entity and specify the target transform (the object you want to follow, the player in this case)
You can add any player model you want as a child of your player entity.
NOTE: IF THE INPUTS ARE NOT WORKING RESTART YOUR PROJECT!