Need Help With Rotation and Mouse

Godot Version



so im working on a 3d game and im trying to make a gun rotate around the character by following the mouse however the issue im having is the guns rotation point is towards the top left of the view port and not in the center of the character been looking at tutorials and the docs but cant seem to find anything

Try using marker3D for the position of the pistol