A little bit confused here. I created a top-down maze level with impassable meshes as walls. However if the character collides with the wall and stops, the camera continues to move while holding down a movement key. I’m trying to constrain the x and y positions of the camera so it is always on top of the mesh.
The same way you would with a first person camera. Think about it this way…
If you are using the predefined character controller package that Unity gives you from the start then that is where you start from. You can use the first or third person view, doesn’t matter. Just use the first person for this exercise.
Go to the main camera, and lift it’s Y position above the player high enough to a point you like. Then rotate it so it is facing downwards. As long as the Camera is ‘underneath’ the player in the hierarchy it will follow along with it.
Does this make sense? Hope I could help.