I am trying to setup Over the Shoulder third person camera with PhantomCamera3D with horizontal offset. Looking at the PhantomCamera3D video, it is showcasing that the over the shoulder is able to lock Character on left side: Third Person Follow (3D) | Phantom Camera
Here is the intended working rotation with shoulder lock:
And here is the actual rotation behavior:
The actual behavior rotation is not locking the shoulder, instead, it’s sort of orbiting around the offset. Any ideas what can be done to fix it?
Basically the idea is to create a camera pivot at the player’s feet. Then create left/right shoulder pivot as a child of the camera pivot. As a child of that. create spring arm and a camera target. These structure should be added in the player scene (local to player). In the main scene, create PhantomCamera3D simple follow and mimic lookat, with target = camera target previously created
On Mouse movement X, rotate CameraPivot on Y axis only (i.e: Yaw)
On Mouse movement Y, rotate ShoulderPivot on X axis only (i.e: Pitch)
CameraPivot should be TopLevel so that the Player rotation will not impact its rotation. However, CameraPivot position should follow Player’s position
I am using PhantomCamera3D Simple Follow and Mimic LookAt because the ThirdPerson follow interferes with the yaw and pitch of the shoulder. Potentially I can use the ThirdPerson follow by omitting the SpringArm I created under the shoulder pivot though, but that can be done for future exercise instead.
Here is the OverTheShoulder in action after the fix: