- Home /
Character looking at mouse (top-down 3D)
iv'e asked this question before, and it got removed. I was told to do research which i had, but none of them worked since most of them we're 2D.
My camera is position on top of the player, facing down towards the player.
The character is a 3D model.
How would i make the 3D character model face my mouse at all times?
If you know a post about my exact problem, post it please.
Answer by n1gth · Jul 13, 2015 at 07:09 AM
Look at the Survival Shooter tutorial. This demonstrates exactly what you need in part 2.
Answer by Cherno · Jul 13, 2015 at 08:04 AM
Cast a ray from the camera towards your mouse position, and store the hit.point of that ray. Use Transform.LookAt to rotate the character towards the hit.point.
This doesn't work for me, since the entire character will look at (and rotate to) the ground.