# FABRIK strange offset from effector?

**URL:** <https://forums.unrealengine.com/t/fabrik-strange-offset-from-effector/358896>\
**Category:** Community & Industry Discussion\
**Tags:** gun, socket, unreal-engine, snap, question\
**Created:** [May 28, 2016, 7:56pm UTC](https://forums.unrealengine.com/t/fabrik-strange-offset-from-effector/358896 "2016-05-28T19:56:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [May 28, 2016, 7:56pm UTC](https://forums.unrealengine.com/t/fabrik-strange-offset-from-effector/358896/1 "2016-05-28T19:56:56Z")

</div>

![92400-screenshot_3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/f/c3f057371ffdf3a55c3024b5a73942a156570643.png)

I’ve used FABRIK set as in the screenshots below to snap my hand to the gun grip, yet my left hand is somehow having a huge constant offset from it. the socket 100% exits and it’s position was checked with trace line.  
the transform supplied to FABRIK node is world-transform also.

![92398-screenshot_2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/c/f0cf802d28af9db65e8eb268d59df94309ea3690.png)

![92399-screenshot_4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/f/86fa5e99f64781f27f09b54ce355d70dd27fc769.png)

i could of course compensate the offset with vector math, but it seems as an additional work for the runtime to calculate and is ugly code.

what could cause it?  
thanks.

---

<div class="post-metadata">

**Author:** ![Spectral\_Ink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spectral\_Ink](https://forums.unrealengine.com/u/Spectral_Ink)\
**Post date:** [June 1, 2016, 11:19pm UTC](https://forums.unrealengine.com/t/fabrik-strange-offset-from-effector/358896/2 "2016-06-01T23:19:53Z")

</div>

I’m having a similar issue

---

<div class="post-metadata">

**Author:** ![Spectral\_Ink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spectral\_Ink](https://forums.unrealengine.com/u/Spectral_Ink)\
**Post date:** [June 2, 2016, 6:13pm UTC](https://forums.unrealengine.com/t/fabrik-strange-offset-from-effector/358896/3 "2016-06-02T18:13:11Z")

</div>

we found a solution in our case. We were getting the world positions of the sockets, and the evaluation of that seemed to be a frame behind. we re-worked it to component space and it worked a lot better.

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [June 2, 2016, 7:54pm UTC](https://forums.unrealengine.com/t/fabrik-strange-offset-from-effector/358896/4 "2016-06-02T19:54:59Z")

</div>

thanks for cooperating!  
i will try it soon.  
by the way to make sure it’s clear, by “frame behind” do you mean it lags, or just works bad?

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [December 28, 2016, 7:41pm UTC](https://forums.unrealengine.com/t/fabrik-strange-offset-from-effector/358896/5 "2016-12-28T19:41:30Z")

</div>

**workaround** _(manual, annoying; but perfectly working)_

in your specific weapon class, add a vector variable (constant) that is the location offset from mesh root to the grip location, and use it in your FABRIK.

sadly you will have to manually find this constant vector value for each weapon, which takes 2 minutes, but is a bad programming practise. i will be happy to know about any better solutions!
