I'm trying to make a radial sight function for the enemies in my game
I want them to know if the player has entered a radius around them, and be able to control the angle of their sight according to their direction
So basically it's checking if the player has entered a sector of the radius around them, and also being able to control the percentage of the sector and its direction.
I thought about splitting the radius around them into directions, as seen in the image. I'm not sure if that's right.
I'm terrible at math so I couldn't figure this one out, I'd appreciate the help
this is the closest solution that I found, but I couldn't make it work
https://www.geeksforgeeks.org/check-whether-point-exists-circle-sector-not/

Here is my work on this years "Brackey's game jam"
It was my first gamejam! I did not finish, but man i had fun.
My brain felt like mush by the end. Thanks for peeping
I might finish this someday!
Here is a small little collab project with my friend Scratch.
This has been a fun project and i feel like i've learned a lot!
My first big(for me) pico 8 project!
I plan to add more to this project later, but for now i'm dyin to share.
<3






3 comments


