Login

Fancade Wiki

Updated Dot Product.md (markdown)

... ...
@@ -13,4 +13,12 @@ If the two input vectors are unit vectors (vectors with length of 1), the dot pr
13 13
14 14
- Get the output of the dot product and divide it by the product of the two input vectors' length.
15 15
16
[[/uploads/20210106_122008.jpg]]
... ...
\ No newline at end of file
0
[[/uploads/20210106_122008.jpg]]
1
2
We don't have an inverse cosine block, but we can create one to find the angle:
3
4
[[/uploads/Screenshot_20210106-121820_Fancade.jpg]]
5
6
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?
7
8
[[/uploads/Screenshot_20210106-131627_Fancade.jpg]]
... ...
\ No newline at end of file
Fancade Wiki