Unity Basic AI Tutorial - Dot Product

Published: 17 June 2018
on channel: Stephen
1,769
48

This tutorial shows how you how to use the dot product determine whether an enemy is behind, beside, or in front of a player. I then explain the dot product and its use cases, and finally, I apply it to create the following functionality:
Determine enemy position in relation to the player
Perform a critical attack when behind an enemy
Perform a weak attack when beside an enemy
Have an enemy sneak up on a player when the player is looking away
Can only attack the enemy when in range
Basic player controls (move and rotate)

0:00 - 0:55 - Introduction and Showcase
0:56 - 2:30 - Project setup (place enemy and player)
2:31 - 21:20 - Explanation of Dot Product and its application
21:21 - 52:47 - Implementation of everything seen in the intro

Full project can be downloaded from:
https://github.com/nostalgicbear/Unit...


On this page of the site you can watch the video online Unity Basic AI Tutorial - Dot Product with a duration of hours minute second in good quality, which was uploaded by the user Stephen 17 June 2018, share the link with friends and acquaintances, this video has already been watched 1,769 times on youtube and it was liked by 48 viewers. Enjoy your viewing!