How to make work my Third Person Over The Shoulder Camera?
I've been searching information around the internet and I haven't find any single tutorial on how to achieve what I'm trying to do. I find this and this and many other pages and videos.
What I'm trying to achieve is to make an Over The Shoulder style fixed camera, that is, a camera place over one side of the player (right or left), that is always facing the same direction as the player (forward). There's no orbitation ability, the camera rotates with the player. Also, there's some smooth in movement.
The smooth part is, as far as I know, relatively easy (I've seen scripts using Slerp, SmoothDamp, Lerp). Most of those scripts use LookAt, since they have the player directly in front of the camera. However, as I stated before, the camera is not directly back of the player, is in this shoulder, So LookAt is not something I can use. Also, LookAt will look for a target, and by the tests I've done, the camera rotates around that target, which is not what I'm looking for.
I also tried using the SmoothFollow script that comes with the StandardAssets, but it happens the same as the other scripts, the camera does not stays at its original place.
So, I've made many different scripts with different approaches, and none of them have worked as I wanted, so I'm definitely giving up, and that's why I ended up here...
I just want to make something really simple, a camera that follows and rotates with the player staying at its original place, so then I could work it to make it more complex.
This is the first time I'm making a Third Person game, so I honestly don't have too much experience, so...am I missing something? What should I do?
Answer by jspilner · Oct 09, 2020 at 02:57 PM
https://youtu.be/4HpC--2iowE?t=248
@theMasky this is using an asset called CineMachine, but basically it uses any camera in your scene to adjust and place anywhere you can imagine, suggest you follow the tutorial, if you are unfamiliar with using code to adjust, maybe this will help
Your answer
![](https://koobas.hobune.stream/wayback/20220613013047im_/https://answers.unity.com/themes/thub/images/avi.jpg)