I am trying to make a third person spaceship game and I am currently struggeling with the rotation controls of the spring arm (+camera) and the spaceship.
What i want to do is that you can freely move the camera around but the spring arm should still inherit the rotation of the spaceship for when the spaceship gets rotated by something else than the player. This far i managed by setting the “inherit pitch/yaw/roll” option of the spring arm to true.
For the rotation I am using quaternions since I encountered Gimbal Lock.
What causes my problem is that i also want the spaceship to rotate towards the crosshair (spring arm rotation) when you hold right click. Since the spring arm inherits the rotation, i have to rotate the spring arm in the opposite direction for the spring arm to stay in place. For some reason this doesn’t work. Does anyone know how to solve this?
Another idea would be to not inherit the spaceships rotation and manually add it to the springarm whenever the spaceship gets rotated except for when you hold rightclick.
What would your approaches be?