Mhhh I don't think it's the gimbal lock, because the turret only rotates around one axis, and the camera as well, and the tank is mostly horizontal.
The problem is simply the fact that I don't know how to play with angles in this case.
I'm sure there's some simple solution to this but unluckily I have no technical school about this and I'm lost.
I'll see if I can understand how quaternion work by myself and let you know if I manage to pull this thing off with those juicy commands.
On the other side, I would like to make ALL physical, including the turret rotation.
This means I want to add TORQUE to the turret and this for a simple reason: the cannon is long, and can impact on structures.
If the turret is not managed physically, the cannon will be able to push the tank away easily and this can't happen.
Yes I could make that if the cannon impacts something it stops moving, but that's a dirty trick and I don't like it much.
If I go physical, I'll have no problems at all with this.
And once I learn how to deal with this stuff, it's forever