I have a turret transform which is a child of weapon game object. Which in itself is a child of player object. I want to rotate this turret towards a world point (Raycasthit.point of a ray going forward from center of the screen).
One thing to note is that weapon model is made in blender and turret bone have a default rotation of (90,0,0). It looks like this:
I tried the usual Quaternion.LookRotation method by subtracting raypoint from turret local position, from world position and even by converting the raypoint from world to local by InverseTransformPoint and I also tried changing the world up direction to every possible combination. I also tried SetLookDirection method with every possible combination. But I just can't seem to make the rotation work properly.