UNITY GAME DEVELOPMENT Creating a Third Person Game

  • Slides: 14
Download presentation
UNITY GAME DEVELOPMENT Creating a Third Person Game

UNITY GAME DEVELOPMENT Creating a Third Person Game

CLASS OVERVIEW Class 4 Revision Third Person Camera Player Movement Camera Rotation Camera Look.

CLASS OVERVIEW Class 4 Revision Third Person Camera Player Movement Camera Rotation Camera Look. At Camera Zooming Importing Assets Animation Blend. Tree Advanced: Animation events Advanced: Contextual sound using Raycasting

REVISION Raycasting – Camera-to-World Nav. Mesh Baking & Nav. Mesh Agent Click Visualisation Camera

REVISION Raycasting – Camera-to-World Nav. Mesh Baking & Nav. Mesh Agent Click Visualisation Camera Movement Importing 3 D models Animation timeline Animation events Animator Raycasting – Game. Object-to-Game. Object Enums – Player States Advanced: Applying Damage

THIRD PERSON CAMERA Camera is behind player in the Z axis. Camera can rotate

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.

PLAYER MOVEMENT Implement Horizontal and Vertical Player Movement. Implement Jumping logics.

PLAYER MOVEMENT Implement Horizontal and Vertical Player Movement. Implement Jumping logics.

CAMERA MOVEMENT Camera Position = Camera Target (Player) + Camera Offset

CAMERA MOVEMENT Camera Position = Camera Target (Player) + Camera Offset

CAMERA ROTATION Use Mouse Axis to increase Rotation Clamp Rotation X Multiply Rotation with

CAMERA ROTATION Use Mouse Axis to increase Rotation Clamp Rotation X Multiply Rotation with Camera Offset Add up with Camera. Target and assign to Camera Position

CAMERA LOOKAT Look. At function will face an object towards it’s target.

CAMERA LOOKAT Look. At function will face an object towards it’s target.

CAMERA ZOOMING Mouse Scroll. Wheel Axis can be used to Zoom in / Zoom

CAMERA ZOOMING Mouse Scroll. Wheel Axis can be used to Zoom in / Zoom out. Value should be clamped to prevent Camera going too far forward / back.

IMPORTING ASSETS Download Assets Import Asset Folder Place Ellen Model in Scene Setup Animations

IMPORTING ASSETS Download Assets Import Asset Folder Place Ellen Model in Scene Setup Animations for looping Create Animator

ANIMATION BLENDTREE Setup Animation Blend Tree with Movement Parameters

ANIMATION BLENDTREE Setup Animation Blend Tree with Movement Parameters

ADVANCED: ANIMATION EVENTS Setup Animations Events for Footsteps (0 = left, 1 = right)

ADVANCED: ANIMATION EVENTS Setup Animations Events for Footsteps (0 = left, 1 = right) Play Sound Effect per Step

ADVANCED: CONTEXTUAL SOUND USING RAYCASTING Raycast from Foot to Ground Play sound based on

ADVANCED: CONTEXTUAL SOUND USING RAYCASTING Raycast from Foot to Ground Play sound based on ‘tag’

Q&A Do you have any questions related to the topics mentioned?

Q&A Do you have any questions related to the topics mentioned?