I'm currently working on adding trucks to my first person vehicle mods, but I've encountered a bit of an issue.
With all other vehicles the camera is directly at the end of the camera (image 1)
On the truck it's attached slightly above the spring arm (image 2)
I've been moving the spring arm with the function shown in image 3, which works perfectly fine.
However, using the same code to adjust the camera position (image 4) does not work, and I don't really understand why.
The references to the truck's camera and spring arm are done as shown in image 5
The reason the camera needs to be moved, is because to get the correct rotation, the spring arm needs to be set to a target length of 0, which means it'll rotate around the origin of the spring arm. But since the camera is attached a considerable distance above the spring arm (175cm) it means the camera is just way too high, and the rotation doesn't work out.