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.com/MrSimsek/33ef...
- CameraController Script: gist.github.com/MrSimsek/8bd5...
- Unity CharacterController.Move Documentation: docs.unity3d.com/ScriptRefere...
Негізгі бет Unity Third Person Tutorial - Third Person Controller with Camera in Unity3D
Пікірлер: 56