Facing an object to specific location

Hello fellows, I am working on a platform-game project at the moment but I have an issue about facing enemy object to main character.I want to face enemy object’s upper body to the specific main character location.But only the upper part of body should turn to the main character.How I could do that?Also if you know any document about that, it would be helpful too.

is the upper body a separate object?
do you use bones /armature? … put the script on the bone that controls upper body

maybe these:

,

might need these to work in Euler Degrees… instead of Quaternion
(i myself dunno what quaternion is me no good at higher maths derp)

You could check for the current angle of the upper body compared to the lower body or the whole model itself, meaning whenever it’s facing forward, the angle should be 0. Then for each turning to left, it should decrease by -1 and right side should increase by 1.

Then I think you could use EulerAngles to rotate the upper body as a GameObject/Transform by scripting just like you do with any other object.

Check out these: