# Get predicted socket location

**URL:** <https://forums.unrealengine.com/t/get-predicted-socket-location/478318>\
**Category:** Character & Animation\
**Tags:** Kinematic, unreal-engine, question\
**Created:** [February 6, 2021, 5:21am UTC](https://forums.unrealengine.com/t/get-predicted-socket-location/478318 "2021-02-06T05:21:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ascedmor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ascedmor](https://forums.unrealengine.com/u/Ascedmor)\
**Post date:** [February 6, 2021, 5:21am UTC](https://forums.unrealengine.com/t/get-predicted-socket-location/478318/1 "2021-02-06T05:21:08Z")

</div>

I am trying to use IK to move the hands in a ledge grab animation onto the ledge correctly (mostly to handle going up and down slopes), however I am having some difficulties.

I am currently using a line trace to get the height of the ledge, however I cant find a way to offset the value with the animated height of the hand (I cant use a bone space IK because of the way the animation rotates the hand), this results in the hand sliding along the ledge rather than lifting up while its moving.

I am not sure if I am being clear, but essentially what im asking is how do I get the position that the animation should put the hand if the IK weren’t active.

Also open to suggestions for other solution.

---

<div class="post-metadata">

**Author:** ![GaetanTotem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GaetanTotem](https://forums.unrealengine.com/u/GaetanTotem)\
**Post date:** [May 7, 2021, 12:41pm UTC](https://forums.unrealengine.com/t/get-predicted-socket-location/478318/2 "2021-05-07T12:41:53Z")

</div>

Currently doing something similar myself.

Not quite there yet, but I found some interesting sources:

> [@FVector output pin on a custom animation node](https://forums.unrealengine.com/t/fvector-output-pin-on-a-custom-animation-node/116080):
>
> Hey everyone, I’m trying to make a simple custom animation node that will return me the Vector position of a bone. I’m currently trying to add the output pin and I can’t find how to do it. I saw on a thread that I should do something similar to this (from [this thread](https://answers.unrealengine.com/questions/384521/create-output-pin-c.html)): void UCustomGraphNodeClass::CreateOutputPins() { const UAnimationGraphSchema\* Schema = GetDefault\<UAnimationGraphSchema\>(); CreatePin(EGPD\_Output, Schema-\>PC\_Struct, Text("Pose", FPoseLink::StaticStruct(), /\*bIsArray=\*/ false,…

> **[Creating Custom Animation Nodes](https://www.unrealengine.com/en-US/blog/creating-custom-animation-nodes)**
>
> Often when working on with Animation Blueprints you will want to create custom nodes. This is fairly easy to do, but it requires an understanding of how the base system is designed. Here, I explain basic system and how to get started.
