having a collider follow a player once inside triggerable zone

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.

Cone.transform.up = Cone.transform.position - player.transform.position;

I believe the Transform up is used as the forward in this case