Unity Basic AI Tutorial - Dot Product

Pubblicato il: 17 giugno 2018
sul canale di: 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...


In questa pagina del sito puoi guardare il video online Unity Basic AI Tutorial - Dot Product della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Stephen 17 giugno 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,769 volte e gli è piaciuto 48 spettatori. Buona visione!