In this lecture we look at the dot product of two vectors.
This is useful for working out the directional similarity of vectors but can also be used to find the angle between them.
Did you manage to solve the mini-challenge?
What is the angle between the enemy’s forward vector (1, 0) and the vector to the player (-3, 4)?
Is the player within the enemies line of sight?
Post your answers below and remember to use the spoiler tags.