6 types of FOV actions (3d / 2d):
(1) Simple Fov without physics (see attached pict):
- Set Enemy Fov 2d
- Set Enemy Fov 3d
- Set Enemy Fov 2d by tag
- Set Enemy Fov 3d by tag
How does it work: Set your FOV and set your target by gameobject. If the target is in the FOV then bool is set to true and/or send event. Click on object with action to see visual FOV.
(2) Dynamic Vision Cone Fov (see attached pict):
- Dynamic Vision Cone Fov
- Dynamic Vision Cone Fov 2D
How does it work: Will draw a FOV Mesh and uses physics. You can set different states to the FOV (attack or idle, etc - by int). Set your target by gameobject or tag. If the target is in the FOV then bool is set to true. Read tooltips for more info.
Any issues or problems, please post here.
On ecosystem (for quick search: fov) or
https://snipt.net/dudebxl/tip: activate gizmo in game mode and you should see the debug lines.
Special thanks and original code snippet by: Dima Kurilchenko, AnomalusUndrdog, pencilsquaregames