Third Person and Top Down swaps. Any ideas?

Hi guys, I’m making a game where there are 2 perspectives, depending on the player choice. The idea is that the camera position can be changed with a press of a button to go from third person to lets say top-down.

Now I imported the CharacterController package but I can’t figure out which ones to use. You see, I can’t figure out the proper way to make the mouse look work. Should I attach the camera as a child to the player and rotate the player? If I rotate the camera then I won’t be able to rotate the player once the perspective changes.

Also, should I use transform.lookAt(target) for the top down view? Seems to work well enough. Basically I’m asking you for an idea on how to make the mouse look work in a way that the character rotates towards the cursor in top down and third person modes.

How about if the button changed the parameters of your camera control script? For example, if you’re using SmoothFollowWithCameraBumper, you could change the height, distance, and/or target transform.

1 Like

Hmm this script is fairly similar to the one I wrote. Thing is I can’t figure out how to make the mouselook work.

From a top-down perspective it’s pretty easy with a raycast from the camera, but how would I make this work in a third person? Do I rotate the player model itself with the input x/y from the mouse or should I rotate the camera itself and make the player face an empty object in front of the cam?

Thanks for the response though, it gave me a few ideas how fix up my own script.