unity game engine - Cinemachine 3rd person camera where the camera is stationary when the player moves laterally - Stack Overflo

I am trying to make a 3rd person Cinemachine camera that follows a player, and the player moves relativ

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

The 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信