Is there a way to make the player look at the mouse without using raycasting?
For instance, if our player is walking along a narrow platform in a tds, it wont look at the mouse unless the mouse is over the platform?
Would there be a way around this? If you’re giving examples could you please give them in C#, much appreciated.
Carl
additional info
Apologies I meant rotate the player! i tried to have a go at using the raycasting but i couldnt get it working,
transform.rotation = Quaternion.Slerp(transform.rotation,
Quaternion.LookRotation(hit.point - transform.position),
rotateSpeed * Time.deltaTime);