[Unity project actual combat] 3DRPG game development 05 - the use of animation, image quality optimization and shader

camera follow

There are many ways for the camera to follow the character. For other methods, you can read another article.
Unity controls the camera to follow the player in three ways.

Add a virtual camera
insert image description here
insert image description here
insert image description here
Set the tolerance, the camera will have a slow following effect
insert image description here
Set the camera height, you can also modify the camera position by ctrl+shift+f
insert image description here

If you want to see the center of the character, you can create a new empty child node in the character, adjust the position, and drag the child node
insert image description here

Guess you like

Origin blog.csdn.net/qq_36303853/article/details/130373377