Unreal Engine Livestream - Character Animation in UE4 - Jan 25 - Live from Epic HQ

To get the weapon pointed precisely where the crosshairs trace hits is complicated. I have it working well but it is a bit involved. The basic idea is to use LookAt on the right hand bone (I used Transform(Modify)Bone with FindLookAtRotation). The complication is that the right hand bone and the weapon barrel are not aligned along the same vector. To solve this you need to know the offset between the hand bone and the point on the barrel that is closest to the hand bone. That difference can be used to determine what location the hand bone should look at given the location that the barrel should look at – you just add the barrel/hand offset to the barrel look at location (think parallel lines). And you can add sockets to your weapon skeleton (one for barrel location, one for hand bone location) to help you figure out the barrel/hand offset. On BeginPlay, get the offset between the two sockets (I find this preferable to hard-coding the offsets, but you can do that instead if you want).