# Spline IK with Effectors in World Space

**URL:** <https://forums.unrealengine.com/t/spline-ik-with-effectors-in-world-space/423753>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 27, 2018, 4:39pm UTC](https://forums.unrealengine.com/t/spline-ik-with-effectors-in-world-space/423753 "2018-04-27T16:39:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AverInv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AverInv](https://forums.unrealengine.com/u/AverInv)\
**Post date:** [April 27, 2018, 4:39pm UTC](https://forums.unrealengine.com/t/spline-ik-with-effectors-in-world-space/423753/1 "2018-04-27T16:39:25Z")

</div>

Hi, with regards to the Animation Blueprint, the Two Bone IK and FABRIK nodes have a way to switch the effector location space from component (or bone) to world space. However, the Spline IK node does not have this option - should I assume that the effector (control points) are in component space? Say my hip and my head transforms are given in World Space - how would I convert these into the right inputs for Spline IK?

How does performance of Spline IK compare to FABRIK? Is one more expensive than the other?

There seems to be a way to control the roll and twist of the spine, but what about in the pitch direction? Or does Spline IK only handle bending in one dimension?

---

<div class="post-metadata">

**Author:** ![codehawk64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@codehawk64](https://forums.unrealengine.com/u/codehawk64)\
**Post date:** [June 26, 2020, 8:55am UTC](https://forums.unrealengine.com/t/spline-ik-with-effectors-in-world-space/423753/2 "2020-06-26T08:55:57Z")

</div>

Did you figure out how to fix this ? I’m also confused about this. Is SplineIK using component space or even bone space ?

---

<div class="post-metadata">

**Author:** ![DrZooDinghy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrZooDinghy](https://forums.unrealengine.com/u/DrZooDinghy)\
**Post date:** [June 27, 2020, 12:13pm UTC](https://forums.unrealengine.com/t/spline-ik-with-effectors-in-world-space/423753/3 "2020-06-27T12:13:23Z")

</div>

am also interested in this. Spine IK in global space would be awesome. I am also a bit confused about how spline Ik works. Sometimes it seems to have some odd behavior like rotations.

---

<div class="post-metadata">

**Author:** ![Orion\_78](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Orion\_78](https://forums.unrealengine.com/u/Orion_78)\
**Post date:** [January 11, 2021, 10:02am UTC](https://forums.unrealengine.com/t/spline-ik-with-effectors-in-world-space/423753/4 "2021-01-11T10:02:02Z")

</div>

It works in bone space… very UNCONVENIENT

---

<div class="post-metadata">

**Author:** ![DanielMo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanielMo](https://forums.unrealengine.com/u/DanielMo)\
**Post date:** [January 2, 2024, 12:23am UTC](https://forums.unrealengine.com/t/spline-ik-with-effectors-in-world-space/423753/5 "2024-01-02T00:23:26Z")

</div>

Not true. It is component space and that is why this node does not work:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/5/385e3fcb33f957b25d7fa28a5446d33796d0b4ed.png)

I wrote a simple node to convert world to comopnenet space:

```auto
void UVRIntimateHelperNodes::WorldLocationToComponentSpace(const USkeletalMeshComponent* skeletalMesh, const FVector& worldSpaceLocation, FVector& componentSpaceLocation)
{
	if (skeletalMesh == nullptr)
		return;

	const FMatrix componentInverseMatrix = skeletalMesh->GetComponentToWorld().ToInverseMatrixWithScale();
	componentSpaceLocation = componentInverseMatrix.TransformPosition(worldSpaceLocation);
}

```

I know it is an old thread by i didnt find a sufficiant answer anywere and quite some people requesting a solution. Hope it still helps someone.
