We'll combine the Camera and the Movement script to get a simple Third Person Controller. You can use this structure as a base for prototyping your ideas.
Next, I am planning to add a 3D character with movement animations.
Contents:
00:00 - Intro
00:21 - Scene Setup
01:18 - Third Person Camera Setup
02:53 - Player Movement Setup
05:38 - Rotate player to the direction of the movement
07:40 - Apply smooth rotation
09:34 - Rotate player to the direction of the camera
12:36 - Add Jump functionality
16:03 - Final Result
Resources:
- PlayerController Script: gist.github.co...
- CameraController Script: gist.github.co...
- Unity CharacterController.Move Documentation: docs.unity3d.c...
17 авг 2024