Hi everyone that reads this,
I am relatively new to Unreal and some experience with coding but non with animation. I have been working on this project for a few months, the concept for it is to achieve as close to fully Procedural TFPS weapon handling as possible using UE 5.1.
I have the True FPS character set up with a pistol attached to a socket on the characters right hand. I am then using an Animation blueprint that has a single frame idle pose holding a pistol hooked up to an aim offset that is only moving the head of the character so we can look around. this is then linked to a control rig.
My Goal in this exercise is to use the looking around aim offset to procedurally influence the characters arms and hands to aim the gun at what the character is looking at. But I am struggling with 2 aspects of this goal:
-
Is the handling for the arm movement, I have tried to use Virtual bones and control rig controllers to achieve this but I missing something. I had two controllers bones one for the head and one for the hand parented to the head one.
I was then copying the head socket transform the camera uses to the head controller and tried to offset its child hand controller to the hand but can’t figure out how to set the offset correctly or how to keep the heads influence over the child once it has been offset. if I try to apply IK to the hand so it uses the hand control location then the hand will just drift off into the abyss. -
Is aiming the muzzle of the gun from the offset pivot point that is the character wrist to the desired target.
This one I have played with in control rig by taking the muzzle point and the target then pushing it through an Aim node in control rig then applying the result rotation to the hand controller. This looks like it was working but I had to adjust the Aim node axis to correct the hand rotation to actually face the target direction.
I am really looking for help with understanding these points in more detail and if there is any easier ways to implement my ideas here.
Also sorry in advance if I end up asking some stupid questions, Thank You!