Shield that moves by aim

I’m looking to create a shield-mechanic that lets the player move (aim) a shield using the mouse. In relation to this I’m wondering if anyone have a general idea/tips as to where to start.

The game is FPS and the shield is supposed to block incoming projectiles. The shield is moved using mouse (up-down, sides).

  1. How should I translate the mouse movement into world space-movement for the shield? It needs to be connected to the player/capsule, but have some limit on movement (Z,X).
  2. Preferably I would like to have the player’s arm moving with the shield. Can this be done by enabling physics on bones below the arm and have the player move the hand? moving indirectly by having a socket connecting the shield to hand? so the player actually moves the shield and the arm follows. Or is there a better solution?

I understand some of these are pretty open questions, but my reason for posting this is mainly to see if I’m on the right path or not. Any relevant tutorials/samples would be greatly appreciated.

edit: 1 fixed by converting mouse coordinates to world space and attaching the mesh to player.