Download presentation
Presentation is loading. Please wait.
1
Unity Game Development
Creating a Third Person Game
2
Class overview Class 4 Revision Third Person Camera Player Movement
Camera Movement Camera Rotation Camera LookAt Camera Zooming Importing Assets Animation BlendTree Advanced: Animation events Advanced: Contextual sound using Raycasting
3
Revision Raycasting – Camera-to-World NavMesh Baking & NavMesh Agent
Click Visualisation Camera Movement Importing 3D models Animation timeline Animation events Animator Raycasting – GameObject-to-GameObject Enums – Player States Advanced: Applying Damage
4
Third person Camera Camera is behind player in the Z axis.
Camera can rotate around Player on Y axis and X axis. Camera looks at Player.
5
Player Movement Implement Horizontal and Vertical Player Movement.
Implement Jumping logics.
6
Camera Movement Camera Position = Camera Target (Player) + Camera Offset
7
Camera Rotation Use Mouse Axis to increase Rotation Clamp Rotation X
Multiply Rotation with Camera Offset Add up with CameraTarget and assign to Camera Position
8
Camera Lookat LookAt function will face an object towards it’s target.
9
Camera Zooming Mouse ScrollWheel Axis can be used to Zoom in / Zoom out. Value should be clamped to prevent Camera going too far forward / back.
10
Importing Assets Download Assets Import Asset Folder
Place Ellen Model in Scene Setup Animations for looping Create Animator
11
Animation Blendtree Setup Animation Blend Tree with Movement Parameters
12
Advanced: Animation events
Setup Animations Events for Footsteps (0 = left, 1 = right) Play Sound Effect per Step
13
Advanced: Contextual sound using Raycasting
Raycast from Foot to Ground Play sound based on ‘tag’
14
Q&A Do you have any questions related to the topics mentioned?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.