So i will post a picture to show fully what i mean here
on my zombie object, there is a vision cone collider that, once player is within it, will “point” towards the player. However, my code is not doing exactly that.
Here is my code for it.
Cam and coneAngleMag were two different ways to try calculate the distance so that i can grab the angle to rotate constantly towards the player.
Some guidance on what to do here would be really nice.