Hello,
I need help detecting when gameobject is in front of player and determine in which angle section it is.
My problem is shown here: my “critical zones” are green sections in front of the player object.
I can detect colliders around the player with Physics.OverlapSphere but I need to categorize these colliders, which belongs to which section. I use only objects that are in front of the player (determining it with Vector3.Dot).
The object can be pretty big (located physically in several sections). In that case I want it to be in the first sector.
I am not sure how to continue.
Thanks in advance.