Updated Dot Product.md (markdown)
commited
commit
34585d17d8d4726f7896fdab1901a08651a3fcdd
... | ... | @@ -34,11 +34,11 @@ The dot product of two unit vectors outputs the cosine of the angle between thos |
34 | 34 | |
35 | 35 | [[/uploads/20210106_122008.jpg]] |
36 | 36 | |
37 |
We don't have an inverse cosine block, but we can create the script to find the angle: |
|
37 |
To find the angle, we then use the inverse cosine function: |
|
38 | 38 | |
39 | 39 | [[/uploads/Screenshot_20210106-121820_Fancade.jpg]] |
40 | 40 | |
41 |
Moving on to another example involving a stealth game, there is a guard facing a direction with a FOV of 90° (visually highlighted in green), and there is a ninja sneaking up on him. How can we check if the ninja is on the guard's sight? |
|
41 |
Here is another example, there is a guard facing a direction with a FOV of 90° (highlighted in green) and a ninja sneaking up on him. How can we check if the ninja is on sight? |
|
42 | 42 | |
43 | 43 | [[/uploads/Screenshot_20210106-131627_Fancade.jpg]] |
44 | 44 |