How do I do this, I need the gameObject to rotate and face the mouse for my isometric shooter game. I’ve tried and failed.
I need some help. Thanks.
How do I do this, I need the gameObject to rotate and face the mouse for my isometric shooter game. I’ve tried and failed.
I need some help. Thanks.
The basics should look like this:
Use ScreenPointToRay in conjunction with your mouse pos. Take the ray hitpoint and substract its position from your players position.
Set y of the direction vector to 0. Now use Quaternion.LookRotation and assign the rotation to your player.