Quick aiming question

Hey guys, this isn’t specific for one project.

When telling an enemy to aim/raycast/we at the player and you use PlayerGameObject.position you are aiming at his feet(I’m setting up my GOs so the pivot is at the bottom, as many do i believe), how do you go about counting this?

few options i think of:

  1. setup player so the transform is at the center\upper torso?

  2. tell the enemy to aim at player position + collider height / 2?

anyone wanna pitch in on this?

I would keep the pivot at the feet since this is a useful place to have the pivot. Add a new transform thats a child of the gameobject and put it at the position you want to ray cast to.