Hello there, I need to rotate the weapon around the pivot point towards the scope so that the muzzle is facing the scope (like in Starbound). After rotation, the result should look something like the picture below.
The problem is that when using LookAt() the X axis is rotated towards the scope, but the muzzle is not on the X axis. I’m not very good with vectors, so I don’t understand what transformations I should do for the rotation I need.