How to make half body of a 3d model you imported to follow the mouse position? Similar to a 2.5D shooter Platform game.

Hi Unity users, I’m having trouble finding out how and been doing research about how to do that process but still can’t figure out how because most were 2D Platform Shooters and it was not the answer I’ve been looking for.

I’m referring to 2.5D shooter games like how this guy did it in here 2.5D Shooter Game Unity - YouTube

I tried to find ways but still can’t figure it out.

Thankyou Unity Pros

Various LookAt code has been posted a zillion times on this site. For a 3D model, your model needs to be imported so that it is facing positive ‘z’ when the rotation is (0,0,0), even if you are going to be using it in a 2D game. For 2D, it is best to use a sprite facing right. After that, you will find many posts on looking at the mouse.