# Switching IK pose smoothly

**URL:** <https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984>\
**Category:** Animation\
**Tags:** 3d, godot-4\
**Created:** [December 2, 2026, 3:28am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984 "2026-12-02T03:28:14Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 2, 2026, 3:28am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/1 "2026-12-02T03:28:14Z")

</div>

### Godot Version

4.7

### Question

In my model I have both FABRIK and IKSpline. I switch between them by tweening its influence:

```auto
	### SWITCHING IK
	tween.tween_property(spline_ik, "influence", 0.0, 0.5)
	tween.tween_property(fabrik_ik, "influence", 1.0, 0.5)

```

In FABRIK I shaped the tail to a pose by using joint limitations and use target node to aim at player.  
In SPLINE I have spline in different shapes and set them using animation player

The problem is when switching it sets to default “straight” pose first then going in to my set pose.

Is it possible to blend the poses between IKs and avoid going to default pose first?

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 2, 2026, 3:39am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/2 "2026-12-02T03:39:31Z")

</div>

Is that tween parallel?

---

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 2, 2026, 4:05am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/3 "2026-12-02T04:05:24Z")

</div>

No it’s all stacked one after another.  
\*I tried parallel() also didn’t work.

---

<div class="post-metadata">

**Author:** ![ansihex](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@ansihex](https://forum.godotengine.org/u/ansihex)\
**Post date:** [December 2, 2026, 4:45am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/4 "2026-12-02T04:45:37Z")

</div>

If you manually set both influences to 0.5 does the same happen?

---

<div class="post-metadata">

**Author:** ![ansihex](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@ansihex](https://forum.godotengine.org/u/ansihex)\
**Post date:** [December 2, 2026, 4:46am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/5 "2026-12-02T04:46:47Z")

</div>

> [@gododo](#):
>
> No it’s all stacked one after another.  
> \*I tried parallel() also didn’t work.

Well it kinda has to be parallel, or it defeats the purpose. you have to make sure the chain is 100% influenced by any ik at all times.

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 2, 2026, 10:32am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/6 "2026-12-02T10:32:24Z")

</div>

Let’s see the complete tween code in both cases and differences in results.

---

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 3, 2026, 1:15am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/7 "2026-12-03T01:15:44Z")

</div>

Here’s the code with parallel:

```auto
func _attack_3():
	
	ik_target = player
	
	if tween:
		tween.kill()
	tween = get_tree().create_tween()
	
	### SOME PAUSE
	tween.tween_interval(0.5)
	#tween.tween_interval(0.2)
	#tween.parallel().tween_callback(animPlayer.play.bind("tail_attack", 0.2))

	### SWITCHING IK
	tween.tween_property(spline_ik, "influence", 0.0, 0.5)
	tween.parallel().tween_property(fabrik_ik, "influence", 1.0, 0.5)
	tween.tween_callback(func(): spline_ik.active = false)
	tween.tween_callback(func(): fabrik_ik.active = true)
	
	tween.tween_interval(5.0)
	### SHOOTING ATTACK TO BE HERE
	
	### SWITCHING IK
	tween.tween_property(spline_ik, "influence", 1.0, 0.5)
	tween.parallel().tween_property(fabrik_ik, "influence", 0.0, 0.5)
	tween.tween_callback(func(): spline_ik.active = true)
	tween.tween_callback(func(): fabrik_ik.active = false)
	
	### CYCLE TO NEXT ATTACK
	tween.tween_callback(self._cycle_attack)

```

The video result is the same with no parallel()

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 3, 2026, 1:20am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/8 "2026-12-03T01:20:19Z")

</div>

Why not just activate them both and crossfade them?

---

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 3, 2026, 1:31am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/9 "2026-12-03T01:31:14Z")

</div>

-Yes still happens if both influences are 0.5.  
-I believe the chain is influenced by one of IKs at all times.

-I tried set the blend to zero and it still shows a straight pose for a split second (so instead of blending it looks like a glitch).

```auto
tween.tween_property(spline_ik, "influence", 0.0, 0.0)
tween.tween_property(fabrik_ik, "influence", 1.0, 0.0)

```

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 3, 2026, 1:43am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/10 "2026-12-03T01:43:50Z")

</div>

That’s not a crossfade tween.

---

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 3, 2026, 1:50am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/11 "2026-12-03T01:50:57Z")

</div>

How to crossfade them? I thought tweening both influences in opposite direction results in similar crossfade effect.

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 3, 2026, 1:53am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/12 "2026-12-03T01:53:08Z")

</div>

Yes but your time is 0.0 and we don’t see if the tween is set to parallel. You also don’t set initial values. Post the entire crossfade tween code.

---

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 3, 2026, 1:56am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/13 "2026-12-03T01:56:07Z")

</div>

Oh that 0.0 was for a quick test when replying to anishex. I posted parallel() code with visual from my reply to you.

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 3, 2026, 2:22am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/14 "2026-12-03T02:22:21Z")

</div>

Yes but you didn’t post parallel crossfade code.

---

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 3, 2026, 2:35am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/15 "2026-12-03T02:35:51Z")

</div>

```auto
	tween.tween_property(spline_ik, "influence", 0.0, 0.5)
	tween.parallel().tween_property(fabrik_ik, "influence", 1.0, 0.5)

```

I thought this was the parallel “crossfade” code. If not, how?

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 3, 2026, 3:36am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/16 "2026-12-03T03:36:00Z")

</div>

Make sure you set the initial values as well.

---

<div class="post-metadata">

**Author:** ![gododo](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gododo](https://forum.godotengine.org/u/gododo)\
**Post date:** [December 4, 2026, 2:09am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/17 "2026-12-04T02:09:46Z")

</div>

Wow thank you, it works now and the code is simpler too. I originally thought de-activate unused IK would kind of optimize the boss process but I guess it doesn’t really matter much to just leave them both active.

```auto
func _ready() -> void:
	
	### START ATTACK
	set_process(false)
	
	### SET IK
	spline_ik.influence = 1.0
	fabrik_ik.influence = 0.0

```

```auto
func _attack_3():
	
	ik_target = player
	
	if tween:
		tween.kill()
	tween = get_tree().create_tween()
	
	### SOME PAUSE
	tween.tween_interval(0.5)
	#tween.tween_interval(0.2)
	#tween.parallel().tween_callback(animPlayer.play.bind("tail_attack", 0.2))

	### SWITCHING IK
	tween.tween_property(spline_ik, "influence", 0.0, 0.5)
	tween.parallel().tween_property(fabrik_ik, "influence", 1.0, 0.5)
	
	tween.tween_interval(5.0)
	### SHOOTING ATTACK TO BE HERE
	
	### SWITCHING IK
	tween.tween_property(fabrik_ik, "influence", 0.0, 0.5)
	tween.parallel().tween_property(spline_ik, "influence", 1.0, 0.5)
	
	### CYCLE TO NEXT ATTACK
	tween.tween_callback(self._cycle_attack)

```

  
\*forgot to add video

---

<div class="post-metadata">

**Author:** ![normalized](https://forum.godotengine.org/user_avatar/forum.godotengine.org/normalized/32/58558_2.png) [@normalized](https://forum.godotengine.org/u/normalized)\
**Post date:** [December 4, 2026, 2:24am UTC](https://forum.godotengine.org/t/switching-ik-pose-smoothly/147984/18 "2026-12-04T02:24:14Z")

</div>

Cool looking boss 👍
