I am trying to make a 3rd person Cinemachine camera that follows a player, and the player moves relative to the camera, similar to what you would see in a game like Mario 64. I have the player control script running fine with camera relative movement.
What I need is the Cinemachine camera to remain stationary (but still look at the player) when the player moves laterally, so the player ends up moving around the camera's position. Right now the player always strafes left and right as the camera's positions moves left and right with the player.
To test, I have tried a free look camera where I can move the camera with the mouse, and the character moves relative to the camera position as expected, so I know the movement script is working correctly.
This seems like it should be a common use case for a 3rd person camera, but I have been able to find nothing that helps.
I am trying to make a 3rd person Cinemachine camera that follows a player, and the player moves relative to the camera, similar to what you would see in a game like Mario 64. I have the player control script running fine with camera relative movement.
What I need is the Cinemachine camera to remain stationary (but still look at the player) when the player moves laterally, so the player ends up moving around the camera's position. Right now the player always strafes left and right as the camera's positions moves left and right with the player.
To test, I have tried a free look camera where I can move the camera with the mouse, and the character moves relative to the camera position as expected, so I know the movement script is working correctly.
This seems like it should be a common use case for a 3rd person camera, but I have been able to find nothing that helps.
Share Improve this question asked Mar 10 at 16:27 user1958698user1958698 7110 bronze badges1 Answer
Reset to default 0The Cinemachine virual camera should have a field where you can specify a look target along with an offset.
You can even create a target group which can be used to center the camera between multiple objects and even keep them in frame.
Just have a look around for it, if you're still not coming right, I'll pop open my editor and take some screenshots for ya!
Hope this helps.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744834990a4596208.html
评论列表(0条)