# BoneIKController demo broken

**URL:** <https://forum.babylonjs.com/t/boneikcontroller-demo-broken/43211>\
**Category:** Bugs\
**Tags:** documentation\
**Created:** [August 11, 2023, 3:48am UTC](https://forum.babylonjs.com/t/boneikcontroller-demo-broken/43211 "2023-08-11T03:48:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmrugg](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nmrugg/32/17475_2.png) [@nmrugg](https://forum.babylonjs.com/u/nmrugg)\
**Post date:** [August 11, 2023, 3:48am UTC](https://forum.babylonjs.com/t/boneikcontroller-demo-broken/43211/1 "2023-08-11T03:48:04Z")

</div>

In case you guys were unaware, I noticed that the [demo](https://playground.babylonjs.com/#1EVNNB#15) for [BoneIKController](https://doc.babylonjs.com/features/featuresDeepDive/mesh/bonesSkeletons#boneikcontroller) is broken in Latest. It works in v5 and v4.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [August 11, 2023, 1:19pm UTC](https://forum.babylonjs.com/t/boneikcontroller-demo-broken/43211/2 "2023-08-11T13:19:33Z")

</div>

Assigned @Evgeni\_Popov on August 11, 2023, 1:19pm UTC



---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [August 11, 2023, 4:03pm UTC](https://forum.babylonjs.com/t/boneikcontroller-demo-broken/43211/3 "2023-08-11T16:03:34Z")

</div>

Thanks for reporting, here’s the fix:

> <https://github.com/BabylonJS/Babylon.js/pull/14151>
>
> See https://forum.babylonjs.com/t/boneikcontroller-demo-broken/43211
> 
> This bug… appeared after my changes to the bone class because \`BoneIKController\` relied on a bug in the old \`Bone\` class, where the absolute transformation matrix had a value, but a wrong one - it contained the absolute bind matrix instead of the absolute matrix! To make sure we get up-to-date absolute matrices, we need to call \`skeleton.computeAbsoluteMatrices()\`.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [August 11, 2023, 4:03pm UTC](https://forum.babylonjs.com/t/boneikcontroller-demo-broken/43211/4 "2023-08-11T16:03:45Z")

</div>

Unassigned @Evgeni\_Popov on August 11, 2023, 4:03pm UTC


