FABRIK weapon lock big problem

Hi, I’m making a weapon system, I placed my weapon in my right hand and now I’m stuck trying to lock the left one on the rifle. I searched on forums and most people says that the best way to accomplish this is placing a FABRIK node in anim graph of my character and placing my left hand where I want it to stay when I’m holding the rifle. It seems to work good when I’m idle but when I start to walk left hand starts moving clipping in the rifle.

Here are my settings. (note:I’m using infiltrator demo’s model so wrist=hand shoulder=upperarm)

![)

How I can keep my left hand on my rifle even when I’m jumping, running,walking etc…???

EDIT: ok I tried to correct the hand’s pose by placing transform(bone) node in my anim graph but the rotation I set manually applies obviously to all the animations of my blendspace.

How I can, generally, modify bone position of a specific animation,applying transform bone node in animbp or something like that, ( for example I can displace right hand for run animation but without changing idle animation right hand position) ?

Do you have a socket created on the gun so the hand has something to grab on to?

Also, I don’t know the name in UE but there is a technique where you animate parts of the body, like an arm, with one animation, while the body does other things.

It’s used in games like Uncharted, where Nathan can reload his gun while jumping.

Thanks for your reply. Well I think you’re talking about additive animations but the problem is that I need to modify animations from a blendspace so additive feature is useless in this situation. Anyway can you explain better what were you talking about when you wrote If I had a socket on my gun? Actually I have a socket called RifleSocket (which has a preview mesh to see how the gun held by my character will look like ) on my right hand and when I press F while looking my rifle, it attachs to RifleSocket. My left hand is using a FABRIK node in animation graph and it looks good in animbp’s viewport but when I’m ingame fabrik works well only with idle animation because if I start to move the left hand position screws up as If I’m not using FABRIK node at all.

Maybe 1 thing that you can try, move that FABRIK node to last position in animgraph… i know it doesnt make sense but i solved with that huge aim offset problem :slight_smile: btw i will work on this in few weeks/months so maybe later i can help you. Because i have same problem, left hand randomly floating but im creating another stuff atm.

wow thank you very much for a moment I thought I was the only one trying to do this lol. Anyway I’ll try to fix my problem in that way and I’ll update this thread as soon as possible

ok actually I have a idle/run state for my rifle in my default state machine where I have my rifle blendspace (jog with rifle,idle with rifle,run with rifle etc…) and a fabrik node linked to final animation pose. Seems that putting Fabrik Node in my main anim graph (where I have default state machine linked to final animation pose) just before final animation pose node fixes my problem!! But in that way fabrik is always applied to my character even while I’m not holding weapons at all… Do you have any idea?

Im using these “last” nodes in states… put fabrik node only in states where you want to do it… for example run, aim… and not in idle or walk etc…

yes but I have a blendspace so how I can specify which animation needs Fabrik Node? If i link my blendspace Node to Fabrik Node all my animation are modified. I thought about transform bone feature to manually modify some bones to improve Hand movement but there’s still the main problem that is I can’t specify which animation of my blendspace to modify with Fabrik or transform etc…

update: oook I think that I finally discovered what the problem is. I was placing manually my left hand with FABRIK node but it didn’t update so left hand stayed still while the whole body were moving. Does somebody know how to update my left hand position so it stays attached to my weapon?

I tried putting a socket on my right hand where I want my left hand to stay and linking Socket Transform variable with effective transform pin on FABRIK node but nothing changes and left hand still moves out of my rifle when I start to walk (when I stay idle FABRIK works well)

EDIT:I’m making a new thread where I explain better the situation with photos and videos.